X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=95c19c5a4775e45f407d11b3a13a4dd8ab1cc485;hp=61cddf9af0d3ee14e41b9ca69ac6d88636c2c67d;hb=98a2cb8985b63cd318709aecb70fe6a83a97419a;hpb=d3465c5cd0e6e9b414e669e8c8aa464b03f2fd24 diff --git a/scene.c b/scene.c index 61cddf9..95c19c5 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, nearClip, farClip); 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();