* init function; sets initial OpenGL state\r
*/\r
void init() {\r
- glEnable(GL_CULL_FACE);\r
- glEnable(GL_DEPTH_TEST);\r
- glEnable(GL_TEXTURE_2D);\r
- glLineWidth(3.0);\r
\r
glMatrixMode(GL_PROJECTION);\r
gluPerspective(\r
900.0 /* Z far */\r
);\r
\r
- //glMatrixMode(GL_MODELVIEW);\r
+ glMatrixMode(GL_MODELVIEW);\r
gluLookAt(\r
0.0, 8.0, 60.0, /* eye is at (0,8,60) */\r
0.0, 8.0, 0.0, /* center is at (0,8,0) */\r
glClearDepth(1.0f); // Depth Buffer Setup\r
glEnable(GL_DEPTH_TEST); // Enables Depth Testing\r
glDepthFunc(GL_LEQUAL); // the type\r
+ glEnable(GL_CULL_FACE);\r
+ glEnable(GL_TEXTURE_2D);\r
+ glLineWidth(3.0);\r
\r
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);\r
\r