X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=c57933539c224893b44c6dbb2ae19267a16071e4;hp=31b8317031718a1641771049c85f26dba63f156b;hb=9279cb0a39624664df28bac2026132b4a532acbf;hpb=3b23f19e73a8db312bb79acfb0d31fece146e781 diff --git a/scene.c b/scene.c index 31b8317..c579335 100644 --- a/scene.c +++ b/scene.c @@ -589,7 +589,7 @@ void display() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); gluLookAt( - 0.0, 0.0, -60.0, /* eye is at (x,y,z) */ + 0.0, 0.0, 60.0, /* eye is at (x,y,z) */ 0.0, 0.0, 0.0, /* center is at (x,y,z) */ 0.0, 1.0, 0.0 /* up is in postivie Y direction */ ); @@ -614,9 +614,8 @@ void display() { glPushMatrix(); - //glTranslatef(0.0, 0.0, 0.0); - - glutSolidTeapot(30); // Draw teapot for test + glTranslatef(0.0, 0.0, 0.0); + glutWireTeapot(30); // Draw teapot for test glPopMatrix(); glPushMatrix(); @@ -692,7 +691,7 @@ int main(int argc, char **argv) { glDepthFunc(GL_LEQUAL); // the type glEnable(GL_CULL_FACE); glEnable(GL_TEXTURE_2D); - glLineWidth(3.0); + glLineWidth(1.0); glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);