* Draw a floor.\r
*/\r
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
+ \r
drawSquare(0, -1000.0, -1000.0, 1000.0, 1000.0);\r
\r
/*if (useTexture) {\r
glDisable(GL_TEXTURE_2D);\r
}*/\r
\r
- glEnable(GL_LIGHTING);\r
}\r
\r
/*void drawSquare(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2) {\r