X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=scene.c;h=dde21250a2676d16a4b93079f1edeedef72ee0dd;hb=805a86b6d1deded8f3f69fa059e1916e0e490ce5;hp=61cddf9af0d3ee14e41b9ca69ac6d88636c2c67d;hpb=d3465c5cd0e6e9b414e669e8c8aa464b03f2fd24;p=atyndall%2Fcits2231.git diff --git a/scene.c b/scene.c index 61cddf9..dde2125 100644 --- a/scene.c +++ b/scene.c @@ -18,7 +18,6 @@ #include "types.h" #include "scene.h" - /** * Event hander for main menu events * @param id ID of menu item selected @@ -189,10 +188,10 @@ void windowReshape(int w, int h) { glLoadIdentity(); if (w <= h) glOrtho(near, far, near*(GLfloat)h/(GLfloat)w, - far*(GLfloat)h/(GLfloat)w, near, far); + far*(GLfloat)h/(GLfloat)w, -100, 100); else glOrtho(near*(GLfloat)w/(GLfloat)h, - far*(GLfloat)w/(GLfloat)h, near, far, near, far); + far*(GLfloat)w/(GLfloat)h, near, far, -100, 100); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); } @@ -286,7 +285,7 @@ void display() { // Draw teapot for a test object glPushMatrix(); - glTranslatef(0.0, 0.5, 0.0); // **NOTE: Teapot does not rest on surface + glTranslatef(0.0, 1.0, 0.0); // **NOTE: Teapot does not rest on surface glColor3f(0.5, 0.5, 0.5); glutSolidTeapot(1); glPopMatrix();