From: Ash Tyndall Date: Thu, 20 Oct 2011 01:48:22 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=6bc2cf448a219d515341068e044b9610e060c747;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index fc078e2..914f3a6 100644 --- a/scene.c +++ b/scene.c @@ -499,8 +499,8 @@ void makeMenu() { * @param h New height */ void windowReshape(int w, int h) { - /*glViewport(0, 0, (GLsizei) w, (GLsizei) h); - glMatrixMode(GL_PROJECTION); + glViewport(0, 0, (GLsizei) w, (GLsizei) h); + /*glMatrixMode(GL_PROJECTION); glLoadIdentity(); if (w <= h) glOrtho(near, far, near*(GLfloat)h/(GLfloat)w, @@ -635,7 +635,7 @@ void display() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); gluLookAt( - 0.0, 0.0, 10.0, /* eye is at (x,y,z) */ + 0.0, 10.0, 10.0, /* eye is at (x,y,z) */ 0.0, 0.0, 0.0, /* center is at (x,y,z) */ 0.0, 1.0, 0.0 /* up is in postivie Y direction */ );