From 6bc2cf448a219d515341068e044b9610e060c747 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Thu, 20 Oct 2011 09:48:22 +0800 Subject: [PATCH] --- scene.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 */ ); -- 2.20.1