[osg-users] Draw thread per opengl context instead of per GraphicsContext
Ben Meijering
bmeijering at tree-c.nl
Fri Nov 10 03:11:02 PST 2017
Hi Robert,
Thanks again for your quick response.
Isn't an opengl context already used by multiple windows when you use GraphicsContext::Traits::sharedContext ?
I also came across the following function:
BOOL WINAPI wglMakeCurrent(
HDC hdc,
HGLRC hglrc
);
A window device context can be specified here, so it would seem that you can change the window.
I also came across the following:
https://blog.gvnott.com/some-usefull-facts-about-multipul-opengl-contexts/
This also seems to state that a single opengl context can be used to render to multiple windows.
Thank you!
Cheers,
Ben
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72355#72355
More information about the osg-users
mailing list