From: Ash Tyndall Date: Thu, 20 Oct 2011 01:53:51 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=a37cd47b96e5b61c6241bd9709920f3b39594769;hp=6bc2cf448a219d515341068e044b9610e060c747 --- diff --git a/scene.c b/scene.c index 914f3a6..9f8d21f 100644 --- 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 */ void drawFloor() { - drawSquare(0, -floorSize, -floorSize, floorSize, floorSize); + //drawSquare(0, -floorSize, -floorSize, floorSize, floorSize); + glBegin(GL_QUADS); + glVertex3f(-18.0, 0.0, 27.0); + glVertex3f(27.0, 0.0, 27.0); + glVertex3f(27.0, 0.0, -18.0); + glVertex3f(-18.0, 0.0, -18.0); + glEnd(); } /** @@ -635,7 +641,7 @@ void display() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); gluLookAt( - 0.0, 10.0, 10.0, /* eye is at (x,y,z) */ + 0.0, 0.0, 10.0, /* eye is at (x,y,z) */ 0.0, 0.0, 0.0, /* center is at (x,y,z) */ 0.0, 1.0, 0.0 /* up is in postivie Y direction */ );