* @param h New height\r
*/\r
void windowReshape(int w, int h) {\r
- GLdouble near = -10.0;\r
- GLdouble far = 10.0;\r
+ GLdouble near = -1000.0;\r
+ GLdouble far = 1000.0;\r
\r
glViewport(0, 0, (GLsizei) w, (GLsizei) h);\r
glMatrixMode(GL_PROJECTION);\r
// glEnable(GL_TEXTURE_2D);\r
//}\r
\r
- /*glBegin(GL_QUADS);\r
+ glBegin(GL_QUADS);\r
glTexCoord2f(0.0, 0.0);\r
glVertex3fv(floorVertices[0]);\r
glTexCoord2f(0.0, 16.0);\r
glVertex3fv(floorVertices[2]);\r
glTexCoord2f(16.0, 0.0);\r
glVertex3fv(floorVertices[3]);\r
- glEnd();*/\r
+ glEnd();\r
\r
/*if (useTexture) {\r
glDisable(GL_TEXTURE_2D);\r
\r
glPushMatrix();\r
\r
- glTranslatef(0.0, 0.0, 0.0);\r
+ //glTranslatef(0.0, 0.0, 0.0);\r
glutWireTeapot(30); // Draw teapot for test\r
glPopMatrix();\r
\r
glLoadIdentity();\r
\r
gluPerspective(\r
- 60.0, /* field of view in degree */\r
- 1.0, /* aspect ratio */ \r
- 0.0, /* Z near */\r
- 900.0 /* Z far */\r
+ 60.0, /* field of view in degree */\r
+ 1.0, /* aspect ratio */\r
+ -1000.0, /* Z near */\r
+ 1000.0 /* Z far */\r
); \r
\r
glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 1);\r