From 89207802ba3ada5b7df802c488aaae975d0617c6 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Thu, 20 Oct 2011 20:21:27 +0800 Subject: [PATCH] --- scene.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/scene.c b/scene.c index 4870d86..b37a301 100644 --- a/scene.c +++ b/scene.c @@ -413,14 +413,20 @@ int main(int argc, char **argv) { glEnable(GL_TEXTURE_2D); glLineWidth(1.0); - glMatrixMode(GL_PROJECTION); - gluPerspective( /* field of view in degree */ 40.0, - /* aspect ratio */ 1.0, - /* Z near */ 10.0, /* Z far */ 100.0); + glMatrixMode(GL_PROJECTION); + gluPerspective( + 40.0, /* field of view in degree */ + 1.0, /* aspect ratio */ + 10.0, /* Z near */ + 100.0 /* Z far */ + ); + glMatrixMode(GL_MODELVIEW); - gluLookAt(0.0, 35.0, 60.0, /* eye is at (0,8,60) */ - 0.0, 0.0, 0.0, /* center is at (0,8,0) */ - 0.0, 1.0, 0.); /* up is in postivie Y direction */ + gluLookAt( + 0.0, 35.0, 60.0, /* eye is at (0,8,60) */ + 0.0, 0.0, 0.0, /* center is at (0,8,0) */ + 0.0, 1.0, 0.0 /* up is in postivie Y direction */ + ); glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); -- 2.20.1