sharing OpenGL rendering context

Started by
0 comments, last by Cifko 18 years, 9 months ago
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!
Advertisement
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 :-)

This topic is closed to new replies.

Advertisement