Add an idle function to ensure that the screen gets drawn even when callbacks are not generated by the mouse/keyboard.

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@199 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
puggles 2003-09-22 11:30:33 +00:00
parent 4e7cf2f8da
commit 185eab5c78

View File

@ -236,6 +236,10 @@ void readConfigFile ( char *fnme )
}
}
void Idle(void) {
return;
}
int
main(int argc, char *argv[])
{
@ -262,6 +266,7 @@ main(int argc, char *argv[])
glutKeyboardFunc(Key);
glutSpecialFunc(Special);
glutDisplayFunc(Display);
glutIdleFunc(Idle);
glutMainLoop();