PDA

View Full Version : moving display lists to new window



atlasdynamics
03-20-2008, 07:26 AM
I'm trying to simplify a overhead view of a main opengl rendering. The overhead view needs to be displayed in a smaller sperate window above the main rendering. What I would like to do is use the display list of the orginal rendering. I've tried passing the HDC of the new overhead window when swapping buffers but it just hangs up the application.

So my question is if you've created a display list can it be used to render to different windows?

Zengar
03-20-2008, 07:46 AM
You can create a new rendering context and share the display lists using the wglShareLists function. Or you can use the same rendering context to render to both windows (make it current with first window, render, then repeat it for the second window).