*/\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
glPushMatrix();\r
\r
//glTranslatef(0.0, 0.0, 0.0);\r
- glutWireTeapot(30); // Draw teapot for test\r
+ glutWireTeapot(1); // Draw teapot for test\r
glPopMatrix();\r
\r
glPushMatrix();\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