-void drawFloor() {\r
- glDisable(GL_LIGHTING);\r
-\r
- //if (useTexture) {\r
- // glEnable(GL_TEXTURE_2D);\r
- //}\r
-\r
- /*glBegin(GL_QUADS);\r
- glTexCoord2f(0.0, 0.0);\r
- glVertex3fv(floorVertices[0]);\r
- glTexCoord2f(0.0, 16.0);\r
- glVertex3fv(floorVertices[1]);\r
- glTexCoord2f(16.0, 16.0);\r
- glVertex3fv(floorVertices[2]);\r
- glTexCoord2f(16.0, 0.0);\r
- glVertex3fv(floorVertices[3]);\r
- glEnd();*/\r
-\r
-drawSquare(0, -1000, -1000, 1000, 1000);\r
-\r
- /*if (useTexture) {\r
- glDisable(GL_TEXTURE_2D);\r
- }*/\r
-\r
- glEnable(GL_LIGHTING);\r
-}\r
-\r
-int drawFloorRecurse = 2;\r
-/*void drawSquare(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2) {\r
- drawSquare(0, x1, y1, x2, y2);\r
-}*/\r
-\r
-void drawSquare(int recurseLevel, float x1, float y1, float x2, float y2) {\r
-\r
- \r