animation - How can you animate in OpenGL without using the idle function glutIdleFunc()? -
In fact, apart from deactivating, what is another way to animate?
pseudocode
while (! Application_end) {old_time = time; Time = get_time (); Update_scene (time - old_time); Draw_scene (); Flush_output (); Sleep (1); }
... and it is the center of 99.99% serious OpenGL programs ...
PS is not an open mistake, an addon on OpenGL for OST on OSPL Is the library.
Comments
Post a Comment