02-12-2003, 09:08 PM
im writing a simple 3d modeller type program.
for each viewport i have to
initialise openGL
Draw the object
Shutdown opengl
i put this code under wm_paint for each viewport (each viewport is a window in its own right) however this method is making the appliction very slow, not to mention the nasty flickering thats going on because i cant swapbuffers, as i release the device context in the shutdown.
i thought of using glViewport(...) but that wont let me keep a windows messaging system as easily.
for each viewport i have to
initialise openGL
Draw the object
Shutdown opengl
i put this code under wm_paint for each viewport (each viewport is a window in its own right) however this method is making the appliction very slow, not to mention the nasty flickering thats going on because i cant swapbuffers, as i release the device context in the shutdown.
i thought of using glViewport(...) but that wont let me keep a windows messaging system as easily.