(no commit message)
[atyndall/cits2231.git] / scene.c
diff --git a/scene.c b/scene.c
index 914f3a6..9f8d21f 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
@@ -635,7 +641,7 @@ void display() {
   glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\r
   glLoadIdentity();\r
   gluLookAt(\r
-    0.0, 10.0, 10.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

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