*/\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
\r
glutReshapeFunc(windowReshape);\r
glutDisplayFunc(display);\r
- //glutMouseFunc(mouse);\r
- //glutMotionFunc(motion);\r
- glutIdleFunc(idle);\r
+ glutMouseFunc(mouse);\r
+ glutMotionFunc(motion);\r
+ //glutIdleFunc(idle);\r
\r
makeMenu();\r
\r