From: Ash Tyndall Date: Tue, 18 Oct 2011 03:53:12 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=bbcc709acd8f62bd313215c7e71710f3ebcf01c0;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index c13268c..8b52285 100644 --- a/scene.c +++ b/scene.c @@ -593,18 +593,17 @@ int main(int argc, char **argv) { glutInit(&argc, argv); - //glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH); + glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH); - glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH | GLUT_STENCIL | GLUT_MULTISAMPLE); glutInitWindowSize(500, 500); glutCreateWindow("Scene Editor"); - //glShadeModel(GL_SMOOTH); // Enables Smooth Shading - //glClearColor(0.0f, 0.0f, 0.0f, 0.0f); // Black Background - //glClearDepth(1.0f); // Depth Buffer Setup - //glEnable(GL_DEPTH_TEST); // Enables Depth Testing - //glDepthFunc(GL_LEQUAL); // the type + glShadeModel(GL_SMOOTH); // Enables Smooth Shading + glClearColor(0.0f, 0.0f, 0.0f, 0.0f); // Black Background + glClearDepth(1.0f); // Depth Buffer Setup + glEnable(GL_DEPTH_TEST); // Enables Depth Testing + glDepthFunc(GL_LEQUAL); // the type // glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); // Really Nice Perspective Calculations