X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=inline;f=scene.c;h=0a186f84fdeea4566c0720e9e4112cf407305ff1;hb=e204dbdc0e5925daec44037f7b26c9e5984cfdb3;hp=71523bc096a76eb5b361bbcad5d032c7708a41ef;hpb=c042b436d22f2eb9fa232ff667f1e48ededef033;p=atyndall%2Fcits2231.git diff --git a/scene.c b/scene.c index 71523bc..0a186f8 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(); } /** @@ -691,12 +697,12 @@ void init() { glMatrixMode(GL_PROJECTION); glLoadIdentity(); - //gluPerspective( - // 60.0, /* field of view in degree */ - // 1.0, /* aspect ratio */ - // near, /* Z near */ - // far /* Z far */ - // ); + gluPerspective( + 60.0, /* field of view in degree */ + 1.0, /* aspect ratio */ + near, /* Z near */ + far /* Z far */ + ); glLightfv(GL_LIGHT0, GL_POSITION, light0_pos);