X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=c57933539c224893b44c6dbb2ae19267a16071e4;hp=15d8f9d21f72a56850bbea24dca2c929fae485de;hb=9279cb0a39624664df28bac2026132b4a532acbf;hpb=712b188c189ec9aca2ee5ff59b31abced5ce46f3 diff --git a/scene.c b/scene.c index 15d8f9d..c579335 100644 --- a/scene.c +++ b/scene.c @@ -564,7 +564,7 @@ void drawFloor() { // glEnable(GL_TEXTURE_2D); //} - glBegin(GL_QUADS); + /*glBegin(GL_QUADS); glTexCoord2f(0.0, 0.0); glVertex3fv(floorVertices[0]); glTexCoord2f(0.0, 16.0); @@ -573,7 +573,7 @@ void drawFloor() { glVertex3fv(floorVertices[2]); glTexCoord2f(16.0, 0.0); glVertex3fv(floorVertices[3]); - glEnd(); + glEnd();*/ /*if (useTexture) { glDisable(GL_TEXTURE_2D); @@ -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);