X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=c57933539c224893b44c6dbb2ae19267a16071e4;hp=aa26ba1c695b89eeedf65e7f58faf18465e27223;hb=9279cb0a39624664df28bac2026132b4a532acbf;hpb=c3f151c018e143e5505a2c13f3ab876fd5b0a67f diff --git a/scene.c b/scene.c index aa26ba1..c579335 100644 --- a/scene.c +++ b/scene.c @@ -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(); @@ -645,7 +644,7 @@ void init() { gluPerspective( 60.0, /* field of view in degree */ 1.0, /* aspect ratio */ - -900.0, /* Z near */ + 0.0, /* Z near */ 900.0 /* Z far */ ); @@ -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);