Commit cb2dc246618da626a3f58f1a38dd3068605863a0

henry 2002-12-01T08:45:24

Added Idle function

diff --git a/test/demo.cpp b/test/demo.cpp
index d2383b4..3fe2657 100644
--- a/test/demo.cpp
+++ b/test/demo.cpp
@@ -243,6 +243,13 @@ my_display(void)
     glutSwapBuffers();
 }
 
+
+void
+my_idle()
+{
+    glutPostRedisplay();
+}
+
 int 
 file_exists( const char * filename )
 {
@@ -302,6 +309,7 @@ main(int argc, char **argv)
 
 	glutDisplayFunc(my_display);
 	glutReshapeFunc(my_reshape);
+	glutIdleFunc(my_idle);
 	glutKeyboardFunc(my_handle_key);
 
 	glutMainLoop();