X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=2e2f93c46af4bb0b08f63f29ad1c87ba84017b4c;hp=fc078e25777cd0bc54371664c20e04b010908090;hb=b24fabe7a11b7e6d6d53aff68ea37df448fb53d2;hpb=b4de9c715f7b22cc0c08fab65cebc566e938a248 diff --git a/scene.c b/scene.c index fc078e2..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}; @@ -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(); } /**