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