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

Popular posts from this blog

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

iphone - Smoothing a rounded stroke in Core Graphics -

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -