From 931b31d79c7a6a33c8eac86fab2e7f20fc668d3d Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Tue, 18 Oct 2011 20:13:02 +0800 Subject: [PATCH] --- scene.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/scene.c b/scene.c index 73e04ee..72ce8d3 100644 --- a/scene.c +++ b/scene.c @@ -593,30 +593,13 @@ void drawSquare(int recurseLevel, float x1, float y1, float x2, float y2) { * Draw a floor. */ void drawFloor() { - glDisable(GL_LIGHTING); - - //if (useTexture) { - // glEnable(GL_TEXTURE_2D); - //} - - /*glBegin(GL_QUADS); - glTexCoord2f(0.0, 0.0); - glVertex3fv(floorVertices[0]); - glTexCoord2f(0.0, 16.0); - glVertex3fv(floorVertices[1]); - glTexCoord2f(16.0, 16.0); - glVertex3fv(floorVertices[2]); - glTexCoord2f(16.0, 0.0); - glVertex3fv(floorVertices[3]); - glEnd();*/ - + drawSquare(0, -1000.0, -1000.0, 1000.0, 1000.0); /*if (useTexture) { glDisable(GL_TEXTURE_2D); }*/ - glEnable(GL_LIGHTING); } /*void drawSquare(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2) { -- 2.20.1