From: Ash Tyndall Date: Tue, 18 Oct 2011 07:35:04 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=d291c4506bfac6d9dcaab81e9a239eb40e037a01 --- diff --git a/scene.c b/scene.c index 1c6fbd5..62ba908 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 @@ -513,13 +513,13 @@ void drawFloor() { //} glBegin(GL_QUADS); - glTexCoord2f(0.0, 0.0); + //glTexCoord2f(0.0, 0.0); glVertex3fv(floorVertices[0]); - glTexCoord2f(0.0, 16.0); + //glTexCoord2f(0.0, 16.0); glVertex3fv(floorVertices[1]); - glTexCoord2f(16.0, 16.0); + //glTexCoord2f(16.0, 16.0); glVertex3fv(floorVertices[2]); - glTexCoord2f(16.0, 0.0); + //glTexCoord2f(16.0, 0.0); glVertex3fv(floorVertices[3]); glEnd();