enabling smooth shading model

git-svn-id: svn://anubis/anaglym/trunk@52 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop 2009-10-07 20:38:37 +00:00
parent 7fc07f1bf1
commit a3073efb89

View File

@ -53,6 +53,7 @@ void Video::start(int width, int height, bool fullscreen)
glEnable(GL_DEPTH_TEST); glEnable(GL_DEPTH_TEST);
glEnable(GL_LIGHTING); glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0); glEnable(GL_LIGHT0);
glShadeModel(GL_SMOOTH);
glMatrixMode(GL_PROJECTION); glMatrixMode(GL_PROJECTION);
glLoadIdentity(); glLoadIdentity();
gluPerspective(60.0, (double) width / (double) height, 0.01, 10000.0); gluPerspective(60.0, (double) width / (double) height, 0.01, 10000.0);