[Bf-cycles] OpenGL context

Nathan Letwory nathan at mcneel.com
Wed Jan 27 10:36:54 CET 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 26/01/2016 17:03, Mohamed Sakr wrote:
> I wanted to know where does Cycles connect to an OpenGL context. so
> if background = false, I couldn't figure out how does Cycles know 
> which window to draw to?? "can I ignore the window drawing??"

It is the job of the code that drives Cycles to provide an OpenGL
context. For the stand-alone application this code is in
util/util_view.cpp [1]. In the case of Blender, well, it is Blender
managing the OpenGL context.

For instance with CCSycles one could use OpenTK to create a window
with an OpenGL context.

/Nathan

[1]
https://developer.blender.org/diffusion/C/browse/master/src/util/util_vi
ew.cpp

- -- 
Nathan Letwory


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJWqI+2AAoJEKtfN7KsE0Ttg6UIAKxqC5R5nDImev/B6T1hri7I
CqQcmQ82wQgJjwqPZdvPevs7l5xvUNo4snO9I2w5a+ZE+EQPFvbtYrJxqsgpenWU
jM84qCFgjjP06iqju1namZxjShWKwnV39G9/l5265wNSudlvaO/k1XqZvDfWTb2G
9RLm8yGHXy6OrEM9+SOBWyv2XDu7uP9BXtAK/FMF1RJjIRa3cqmLziULn21HLBNZ
inN4hL4DVCnvmQnFqoqQK6Ku5eIvPRLGK04ZqlNJeJtLfaB05D3w05/XZP8W8SNP
+bYN+5kARiFb7vo8gfHpYsmyMy4yTKgg5KLXUMpAxn37EpmzGom0K1BSkJ30EQg=
=weEm
-----END PGP SIGNATURE-----


More information about the Bf-cycles mailing list