src/gl/partrenderer.cpp

changeset 45
272c84c7c87e
parent 44
c6114b3af3a6
child 46
98645c8e7704
equal deleted inserted replaced
44:c6114b3af3a6 45:272c84c7c87e
90 glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 90 glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
91 */ 91 */
92 glEnable (GL_DEPTH_TEST); 92 glEnable (GL_DEPTH_TEST);
93 glShadeModel (GL_SMOOTH); 93 glShadeModel (GL_SMOOTH);
94 glEnable (GL_MULTISAMPLE); 94 glEnable (GL_MULTISAMPLE);
95 glEnable (GL_LINE_SMOOTH); 95 if (this->renderPreferences.lineAntiAliasing)
96 glHint (GL_LINE_SMOOTH_HINT, GL_NICEST); 96 {
97 glEnable(GL_LINE_SMOOTH);
98 glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
99 }
100 else {
101 glDisable(GL_LINE_SMOOTH);
102 }
97 this->renderScene(); 103 this->renderScene();
98 } 104 }
99 105
100 void PartRenderer::renderScene() 106 void PartRenderer::renderScene()
101 { 107 {

mercurial