(no commit message)
[atyndall/cits2231.git] / scene.c
diff --git a/scene.c b/scene.c
index 71523bc..0a186f8 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -606,7 +606,13 @@ void drawSquare(int recurseLevel, float x1, float z1, float x2, float z2) {
  * Draw a floor by calling the drawSquare recursion\r
  */\r
 void drawFloor() {\r
-  drawSquare(0, -floorSize, -floorSize, floorSize, floorSize);\r
+  //drawSquare(0, -floorSize, -floorSize, floorSize, floorSize);\r
+  glBegin(GL_QUADS);\r
+    glVertex3f(-18.0, 0.0, 27.0);\r
+    glVertex3f(27.0, 0.0, 27.0);\r
+    glVertex3f(27.0, 0.0, -18.0);\r
+    glVertex3f(-18.0, 0.0, -18.0);\r
+  glEnd();\r
 }\r
 \r
 /**\r
@@ -691,12 +697,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