* Draw a floor by calling the drawSquare recursion\r
*/\r
void drawFloor() {\r
- drawSquare(0, -floorSize, -floorSize, floorSize, floorSize);\r
+ //drawSquare(0, -floorSize, -floorSize, floorSize, floorSize);\r
+ glBegin(GL_QUADS);\r
+ glVertex3f(-18.0, 0.0, 27.0);\r
+ glVertex3f(27.0, 0.0, 27.0);\r
+ glVertex3f(27.0, 0.0, -18.0);\r
+ glVertex3f(-18.0, 0.0, -18.0);\r
+ glEnd();\r
}\r
\r
/**\r
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\r
glLoadIdentity();\r
gluLookAt(\r
- 0.0, 10.0, 10.0, /* eye is at (x,y,z) */\r
+ 0.0, 0.0, 10.0, /* eye is at (x,y,z) */\r
0.0, 0.0, 0.0, /* center is at (x,y,z) */\r
0.0, 1.0, 0.0 /* up is in postivie Y direction */\r
);\r