PDA

View Full Version : Specifying an Idle Function



gdev
02-21-2004, 12:11 AM
Hi. I am programming an Active X component in VC++ 6.0 that uses OpenGL. I am relatively new to OPenGL but I have been able to do everything I need to do under different circumstances except that I have difficulty putting things together under the same environment. I need to specify an IdleFunction to simulate an animated graphics mode. I thought the documentation using glut was rather straight foward however I have mainly been using WINGDI commands for things such as SwapBuffers rather than glut. Does anyone know of a WINGDI command for specifying an IdleFunction or must I use glutIdleFunc?

brcain
02-23-2004, 07:08 AM
I'm not a Windows savy developer, but, I can tell you that GLUT should not be used with Windows calls -- or any other windowing system's calls for that matter.

[This message has been edited by brcain (edited 02-23-2004).]

gdev
02-23-2004, 05:09 PM
Got it working using wgl and gl commands inside windows ::OnIdle function.