+/**\r
+ * 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
+ /*if (useTexture) {\r
+ glDisable(GL_TEXTURE_2D);\r
+ }*/\r
+\r
+ glEnable(GL_LIGHTING);\r
+}\r
+\r