From: Ash Tyndall Date: Thu, 20 Oct 2011 03:34:59 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=e7a92d3985b360bcb688de9976d1adcfae5de583;p=atyndall%2Fcits2231.git --- 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