sharing OpenGL rendering context
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!
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 :-)
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 :-)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement