From 9bed07eee30fad2272cfba655542de064c2dc816 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Thu, 20 Oct 2011 19:54:52 +0800 Subject: [PATCH] --- scene.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/scene.c b/scene.c index e0bc2b1..1cc9122 100644 --- a/scene.c +++ b/scene.c @@ -182,7 +182,7 @@ void makeMenu() { * @param w New width * @param h New height */ -/*void windowReshape(int w, int h) { +void windowReshape(int w, int h) { glViewport(0, 0, (GLsizei) w, (GLsizei) h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); @@ -194,7 +194,7 @@ void makeMenu() { far*(GLfloat)w/(GLfloat)h, near, far, nearClip, farClip); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); -}*/ +} /** * Called when mouse event occurs @@ -231,6 +231,7 @@ void mouse(int button, int state, int x, int y) { * w/s increase/decrease the z * a/d increase/decrease the x * q/e increase/decrease the y + * z/x increase/decrease the angle * @param key Key pressed * @param x x co-ordinate of mouse * @param y y co-ordinate of mouse @@ -352,12 +353,12 @@ void init() { glMatrixMode(GL_PROJECTION); glLoadIdentity(); - gluPerspective( - 60.0, /* field of view in degree */ - 1.0, /* aspect ratio */ - nearClip, /* Z near */ - farClip /* Z far */ - ); + //gluPerspective( + // 60.0, /* field of view in degree */ + // 1.0, /* aspect ratio */ + // nearClip, /* Z near */ + // farClip /* Z far */ + // ); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); -- 2.20.1