*/\r
/*void mouse(int btn, int state, int x, int y) {\r
\r
-}*/\r
+}*//*\r
static void\r
mouse(int button, int state, int x, int y)\r
{\r
lightStartY = y;\r
glutPostRedisplay();\r
}\r
-}\r
+}*/\r
\r
+void idle() {\r
+ angle = (int)(angle + 10) % 360;\r
+ angle2 = (int)(angle2 + 10) % 360;\r
+ glutPostRedisplay();\r
+}\r
\r
/**\r
* Draw a floor.\r
\r
glutReshapeFunc(windowReshape);\r
glutDisplayFunc(display);\r
- glutMouseFunc(mouse);\r
- glutMotionFunc(motion);\r
+ //glutMouseFunc(mouse);\r
+ //glutMotionFunc(motion);\r
+ glutIdleFunc(idle);\r
\r
makeMenu();\r
\r