(no commit message)
[atyndall/cits2231.git] / scene.c
diff --git a/scene.c b/scene.c
index 71523bc..fc078e2 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -499,7 +499,7 @@ void makeMenu() {
  * @param h New height\r
  */\r
 void windowReshape(int w, int h) {\r
-  glViewport(0, 0, (GLsizei) w, (GLsizei) h);\r
+  /*glViewport(0, 0, (GLsizei) w, (GLsizei) h);\r
   glMatrixMode(GL_PROJECTION);\r
   glLoadIdentity();\r
   if (w <= h) \r
@@ -509,7 +509,7 @@ void windowReshape(int w, int h) {
     glOrtho(near*(GLfloat)w/(GLfloat)h,\r
              far*(GLfloat)w/(GLfloat)h, near, far, near, far);\r
    glMatrixMode(GL_MODELVIEW); \r
-   glLoadIdentity();\r
+   glLoadIdentity();*/\r
 }\r
 \r
 /**\r
@@ -691,12 +691,12 @@ void init() {
   glMatrixMode(GL_PROJECTION);\r
   glLoadIdentity();\r
 \r
-  //gluPerspective(\r
-  //  60.0,  /* field of view in degree */\r
-  //   1.0,  /* aspect ratio */\r
-  //  near,  /* Z near */\r
-  //   far   /* Z far */\r
-   // );\r
+  gluPerspective(\r
+    60.0,  /* field of view in degree */\r
+     1.0,  /* aspect ratio */\r
+    near,  /* Z near */\r
+     far   /* Z far */\r
+    );\r
 \r
   \r
   glLightfv(GL_LIGHT0, GL_POSITION, light0_pos);\r

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