Sign in to follow this  
wildcat06

OpenGL sharing OpenGL rendering context

Recommended Posts

Does anyone know how to use a single OpenGL rendering context render to multiple windows, assuming all the windows use the same pixel format? I am using MicroSoft Windows XP system. Thanks a lot!

Share this post


Link to post
Share on other sites
U have to create rendering context and the second rendering context set sharing between them by calling wglShareLists(hRC, hPreviousRC);
And then when are u going to call any GL func for a specific window u have to set its context as current ( wglMakeCurrent(hDC,hRC);

U can share only context within a thread.

Sorry for my eng, I hope u can understand it :-)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this