|
From: Neszt T. <ne...@ss...> - 2003-04-03 09:57:56
|
Hello! As I know, all the paint function should use after WM_PAINT. It is also true for opengl display? I need to call the display() function 50 times in every secounds. At this point of time, I use it after WM_PAINT, and it seems like, the calls are happens as fast as it can. My solution to aviod these quick calls is when the display() called, in the display() I check the glut elapsed time, and if this is greather than 1/50 sec, I let the display run over. This is not good, as the results shows. The opengl moovings, rotatings, and any other moovement not nicely continuous. So, Is there any mode to set somehow the window, to call the WM_PAINT in every 1/50 sec? Thank Your help in advance, Regards, Neszt Tibor |