* @param h New height\r
*/\r
void windowReshape(int w, int h) {\r
- GLdouble near = -500.0;\r
- GLdouble far = 500.0;\r
+ GLdouble near = -100.0;\r
+ GLdouble far = 100.0;\r
\r
glViewport(0, 0, (GLsizei) w, (GLsizei) h);\r
glMatrixMode(GL_PROJECTION);\r
*/\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