PDA

View Full Version : Problem: Other windows events makes my OGL program to stuck...



Anonymous Coward
09-30-2000, 07:26 AM
My program has 2 windows, the main OGL window and a little dialog. I notice that if I move or resize or click on the controls in this dialog window, the OGL window stucks, and stop receiving messages for a moment. Im pretty sure that this is a problem with the messages loop. Do you know how should I fix this?

yoda
10-02-2000, 08:16 AM
Hi there...if you have the OpenGL Programming Guide (Red Book), you'll see that if you want to resize your screen, you're going to probably need some kind of reshape function. An example of this function in use is given on page 25 of the "Red Book".

Now, if you don't have the book, it is available on-line at:
http://heron.cc.ukans.edu/ebt-bin/nph-dw.../7109;cd=7;td=6 (http://heron.cc.ukans.edu/ebt-bin/nph-dweb/dynaweb/SGI_Developer/OpenGL_PG/@Generic__BookTocView/7109;cd=7;td=6)

Good Luck and Cheers... http://www.opengl.org/discussion_boards/ubb/cool.gif