From: Ash Tyndall Date: Thu, 20 Oct 2011 01:55:48 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=b24fabe7a11b7e6d6d53aff68ea37df448fb53d2;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 0a186f8..2e2f93c 100644 --- a/scene.c +++ b/scene.c @@ -133,7 +133,7 @@ GLfloat zoomFactor = 1.0; int drawFloorRecurse = 5; /* Size of floor, from -n to n */ -int floorSize = 100; +int floorSize = 200; /* Light 0 parameters */ GLfloat diffuse0[] = {1.0, 1.0, 1.0, 1.0}; @@ -606,13 +606,7 @@ 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); - 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(); + drawSquare(0, -floorSize, -floorSize, floorSize, floorSize); } /**