Is it possible to contain this command within a for loop?
eg
for(count = 0; count < 90; count++)
{
do_stuff();
draw_scene();
glutPostRedisplay();
}
clearup();
Is it possible to contain this command within a for loop?
eg
for(count = 0; count < 90; count++)
{
do_stuff();
draw_scene();
glutPostRedisplay();
}
clearup();
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.