X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=scene.c;h=0f6604204ab424c21fec9d9cd08dca4f0a9299d4;hb=da93a4ee122b19edf0631c57ef4d0aac5974876a;hp=cfb80c084521b23c751fe8bffb9a2173c5fdf6e2;hpb=91ab47db2c22378c5607e3fb5499a008edfb0289;p=atyndall%2Fcits2231.git diff --git a/scene.c b/scene.c index cfb80c0..0f66042 100644 --- a/scene.c +++ b/scene.c @@ -110,10 +110,10 @@ char *dirDefault2 = "/cslinux/examples/CITS2231/project-files/models-textures"; char dataDir[200]; // Stores the directory name for the meshes and textures. static GLfloat floorVertices[4][3] = { - { -20.0, 0.0, 20.0 }, - { 20.0, 0.0, 20.0 }, - { 20.0, 0.0, -20.0 }, - { -20.0, 0.0, -20.0 }, + { -1000.0, 0.0, 1000.0 }, + { 1000.0, 0.0, 1000.0 }, + { 1000.0, 0.0, -1000.0 }, + { -1000.0, 0.0, -1000.0 }, }; static GLfloat lightColor[] = {1.0, 1.0, 1.0, 1.0}; // White light @@ -556,15 +556,11 @@ void display() { drawFloor(); glDisable(GL_BLEND); - glPushMatrix(); - glDisable(GL_LIGHTING); - + glPushMatrix(); glColor3f(1.0, 0.0, 1.0); - glTranslatef(0.0, 8.0, 0.0); + glTranslatef(-8.0, 0.0, -10.0); - glutSolidTeapot(1); // Draw teapot for test - - glEnable(GL_LIGHTING); + glutSolidTeapot(1000); // Draw teapot for test glPopMatrix(); glPushMatrix();