From e7a92d3985b360bcb688de9976d1adcfae5de583 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Thu, 20 Oct 2011 11:34:59 +0800 Subject: [PATCH] --- scene.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scene.c b/scene.c index 260169d..80c1ee9 100644 --- a/scene.c +++ b/scene.c @@ -265,6 +265,12 @@ void display() { 0.0, 0.0, 0.0, /* center is at (x,y,z) */ 0.0, 1.0, 0.0 /* up is in postivie Y direction */ ); + gluPerspective( + 60.0, /* field of view in degree */ + 1.0, /* aspect ratio */ + nearClip, /* Z near */ + farClip /* Z far */ + ); // **NOTE: Currently this rotation function is all that moves the camera off -- 2.20.1