OpenGL: How do I use idle func in Windows without using glutIdleFunc()
-
Hi all, I am new to windows programming, I am converting my OpenGL program written in Linux platform into Windows platform. I have used glutIdleFunc() for idle callback func, now I would like to use the same callback func as idle func in Windows platform. How can I use a func as idle func in Windows without using GLUT. Any help would be greatly appriciated. Thanks Scody
-
Hi all, I am new to windows programming, I am converting my OpenGL program written in Linux platform into Windows platform. I have used glutIdleFunc() for idle callback func, now I would like to use the same callback func as idle func in Windows platform. How can I use a func as idle func in Windows without using GLUT. Any help would be greatly appriciated. Thanks Scody
I guess it ultimately depends on how you write your own OpenGL program. You can still use GLUT and freeGLUT under Windows platforms, that keeps your code mostly identicle between platforms. The other is to insert your code into it's own call system. Since freeglut is "free" you can also examine the code to see how the idle function was used. http://freeglut.sourceforge.net/docs/api.php[^]
_________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)