Share OpenGL Displaylists in MDI Applications
-
Hi, is it possible to share OpenGL Displaylists in MDI Applications? I would like to do the following: 1) compile some displaylists 2) Make some CView CDocument Objects 3) Use all or some of the displaylists in different CView`s Many Thanks Olaf
I believe display lists are limited to an OpenGL rendering context. Although you can share rendering contexts across windows (by changing the device context), they must all share the same pixel format. (found in OpenGL Superbible pg. 658) hRC = wglCreateContext(hDC); //initially create rendering context wglMakeCurrent(hDC,hRC); //change to a different hDC, keeping the original hRC Can't say I have actually done this...
-
Hi, is it possible to share OpenGL Displaylists in MDI Applications? I would like to do the following: 1) compile some displaylists 2) Make some CView CDocument Objects 3) Use all or some of the displaylists in different CView`s Many Thanks Olaf