GLfloat angle = -150; /* in degrees */\r
GLfloat angle2 = 30; /* in degrees */\r
\r
+GLfloat near = -10;\r
+GLfloat far = 10;\r
+\r
/**\r
* Prints out error message when file cannot be read\r
* @param fileName Name of file that could not be read\r
* @param h New height\r
*/\r
void windowReshape(int w, int h) {\r
- GLdouble near = -10.0;\r
- GLdouble far = 10.0;\r
-\r
glViewport(0, 0, (GLsizei) w, (GLsizei) h);\r
glMatrixMode(GL_PROJECTION);\r
glLoadIdentity();\r
gluPerspective(\r
60.0, /* field of view in degree */\r
1.0, /* aspect ratio */\r
- -100.0, /* Z near */\r
- 100.0 /* Z far */\r
+ near, /* Z near */\r
+ far /* Z far */\r
); \r
\r
glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 1);\r