X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=scene.c;h=dde21250a2676d16a4b93079f1edeedef72ee0dd;hb=805a86b6d1deded8f3f69fa059e1916e0e490ce5;hp=27466525e62e3a00479cd20e0adea31a19ead70e;hpb=46033191f0e87b94bf98b68146890be3770eaad1;p=atyndall%2Fcits2231.git diff --git a/scene.c b/scene.c index 2746652..dde2125 100644 --- a/scene.c +++ b/scene.c @@ -188,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(); } @@ -285,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();