X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=cfb80c084521b23c751fe8bffb9a2173c5fdf6e2;hp=9da9a5cd581c4f2cac540071960b1d70b7b1173c;hb=91ab47db2c22378c5607e3fb5499a008edfb0289;hpb=e313127fd60026808c2343504b6069f3734d4f8b diff --git a/scene.c b/scene.c index 9da9a5c..cfb80c0 100644 --- a/scene.c +++ b/scene.c @@ -538,7 +538,7 @@ void display() { glLoadIdentity(); gluLookAt( 0.0, 8.0, 60.0, /* eye is at (0,8,60) */ - 0.0, 0.0, 0.0, /* center is at (0,8,0) */ + 0.0, 8.0, 0.0, /* center is at (0,8,0) */ 0.0, 1.0, 0.0 /* up is in postivie Y direction */ ); @@ -556,7 +556,16 @@ void display() { drawFloor(); glDisable(GL_BLEND); - glutSolidTeapot(1); // Draw teapot for test + glPushMatrix(); + glDisable(GL_LIGHTING); + + glColor3f(1.0, 0.0, 1.0); + glTranslatef(0.0, 8.0, 0.0); + + glutSolidTeapot(1); // Draw teapot for test + + glEnable(GL_LIGHTING); + glPopMatrix(); glPushMatrix(); glDisable(GL_LIGHTING);