(no commit message)
authorAsh Tyndall <[email protected]>
Tue, 18 Oct 2011 03:53:12 +0000 (11:53 +0800)
committerAsh Tyndall <[email protected]>
Tue, 18 Oct 2011 03:53:12 +0000 (11:53 +0800)
scene.c

diff --git a/scene.c b/scene.c
index c13268c..8b52285 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -593,18 +593,17 @@ int main(int argc, char **argv) {
 \r
     glutInit(&argc, argv);\r
 \r
-    //glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);\r
+    glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);\r
 \r
-  glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH | GLUT_STENCIL | GLUT_MULTISAMPLE);\r
 \r
     glutInitWindowSize(500, 500);\r
     glutCreateWindow("Scene Editor");\r
 \r
-    //glShadeModel(GL_SMOOTH); // Enables Smooth Shading\r
-    //glClearColor(0.0f, 0.0f, 0.0f, 0.0f); // Black Background\r
-    //glClearDepth(1.0f); // Depth Buffer Setup\r
-    //glEnable(GL_DEPTH_TEST); // Enables Depth Testing\r
-    //glDepthFunc(GL_LEQUAL);  // the type\r
+    glShadeModel(GL_SMOOTH); // Enables Smooth Shading\r
+    glClearColor(0.0f, 0.0f, 0.0f, 0.0f); // Black Background\r
+    glClearDepth(1.0f); // Depth Buffer Setup\r
+    glEnable(GL_DEPTH_TEST); // Enables Depth Testing\r
+    glDepthFunc(GL_LEQUAL);  // the type\r
 \r
    // glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);          // Really Nice Perspective Calculations\r
 \r

UCC git Repository :: git.ucc.asn.au