PompeyBlue
16th August 2004, 08:48 AM
Hello,
So I've had a look through the demos but still can't work out how to get Glut to call a function at a certain frequency ? Ideally I'd set a timer to 60Hz and get it called at that rate, but I don't mind just timing how long it was since the last update and then calling the update code with that time step.
It seems once you tell glut to update it's main loop, you only get repaint messages etc, no form of update ?
So I've had a look through the demos but still can't work out how to get Glut to call a function at a certain frequency ? Ideally I'd set a timer to 60Hz and get it called at that rate, but I don't mind just timing how long it was since the last update and then calling the update code with that time step.
It seems once you tell glut to update it's main loop, you only get repaint messages etc, no form of update ?