X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=040763aa9e53ea5991dc326faab9f149fdab1986;hp=4870d86cbb9ba9700385b5af0ef95a69cd7ccfae;hb=077ddec0d821de69153943349f63df6280504a12;hpb=80479a7e06eeef3f38bfe781ce3ba21218255d5a diff --git a/scene.c b/scene.c index 4870d86..040763a 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, 30.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);