X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=0a186f84fdeea4566c0720e9e4112cf407305ff1;hp=fc078e25777cd0bc54371664c20e04b010908090;hb=e204dbdc0e5925daec44037f7b26c9e5984cfdb3;hpb=b4de9c715f7b22cc0c08fab65cebc566e938a248 diff --git a/scene.c b/scene.c index fc078e2..0a186f8 100644 --- a/scene.c +++ b/scene.c @@ -499,7 +499,7 @@ void makeMenu() { * @param h New height */ void windowReshape(int w, int h) { - /*glViewport(0, 0, (GLsizei) w, (GLsizei) h); + glViewport(0, 0, (GLsizei) w, (GLsizei) h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); if (w <= h) @@ -509,7 +509,7 @@ void windowReshape(int w, int h) { glOrtho(near*(GLfloat)w/(GLfloat)h, far*(GLfloat)w/(GLfloat)h, near, far, near, far); glMatrixMode(GL_MODELVIEW); - glLoadIdentity();*/ + glLoadIdentity(); } /** @@ -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(); } /**