\r
/* Time varying or user-controled variables. */\r
static float jump = 0.0;\r
-static float lightAngle = 0.0, lightHeight = 40;\r
+static float lightAngle = 0.0, lightHeight = 5;\r
GLfloat angle = -150; /* in degrees */\r
GLfloat angle2 = 30; /* in degrees */\r
\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
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\r
glLoadIdentity();\r
gluLookAt(\r
- 0.0, 0.0, 80.0, /* eye is at (x,y,z) */\r
+ 0.0, 0.0, 10.0, /* eye is at (x,y,z) */\r
0.0, 0.0, 0.0, /* center is at (x,y,z) */\r
0.0, 1.0, 0.0 /* up is in postivie Y direction */\r
);\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