drawSquare(0, -floorSize, -floorSize, floorSize, floorSize);\r
}\r
\r
+/**\r
+ * Draw x, z axis on floor\r
+ */\r
+void drawLine() {\r
+ glDisable(GL_TEXTURE_2D);\r
+ glEnable(GL_BLEND);\r
+ glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);\r
+ glColor4ub( 0.0, 0.0, 0.0, 0.0 );\r
+\r
+ glBegin(GL_LINES);\r
+ glVertex3i( 10.0, 0, 0.0);\r
+ glVertex3i( -10.0, 0, 0.0);\r
+ glEnd();\r
+\r
+ glDisable(GL_BLEND);\r
+ glEnable(GL_TEXTURE_2D);\r
+}\r
+\r
/**\r
* Display function\r
*/\r
\r
drawFloor();\r
\r
+\r
// Draw teapot for a test object\r
glPushMatrix();\r
glTranslatef(0.0, 1.0, 0.0); // **NOTE: Teapot does not rest on surface\r