PDA

View Full Version : glutPostRedisplay() question



blood.angel
03-21-2002, 01:33 PM
Is it possible to contain this command within a for loop?

eg

for(count = 0; count < 90; count++)
{
do_stuff();
draw_scene();
glutPostRedisplay();
}
clearup();

03-21-2002, 04:54 PM
User a time function. glutTimerFunc(200, timer, 1)

This makes for easier and more predictable results, or if you want constant iteration just put a glutPostRedisplay() in your idle function.