(no commit message)
[atyndall/cits2231.git] / scene.c
diff --git a/scene.c b/scene.c
index 07a357e..a74a6df 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -484,8 +484,8 @@ void makeMenu() {
  * @param h New height\r
  */\r
 void windowReshape(int w, int h) {\r
-  GLdouble near = -1000.0;\r
-  GLdouble far = 1000.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
@@ -509,7 +509,7 @@ void windowReshape(int w, int h) {
  */\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
@@ -552,7 +552,7 @@ motion(int x, int y)
     lightStartY = y;\r
     glutPostRedisplay();\r
   }\r
-}*/\r
+}\r
 \r
 void idle() {\r
   angle = (int)(angle + 10) % 360;\r
@@ -641,7 +641,7 @@ void display() {
     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
@@ -723,9 +723,9 @@ int main(int argc, char **argv) {
 \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

UCC git Repository :: git.ucc.asn.au