Added code for potential antialiasing

This commit is contained in:
Alessandro Ranellucci 2014-12-17 14:28:25 +01:00
parent a0dda36df0
commit 34a49086e5

View file

@ -212,6 +212,14 @@ sub Render {
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
# anti-alias
if (0) {
glEnable(GL_LINE_SMOOTH);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glHint(GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
glHint(GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE);
}
my $tess = gluNewTess();
gluTessCallback($tess, GLU_TESS_BEGIN, 'DEFAULT');
gluTessCallback($tess, GLU_TESS_END, 'DEFAULT');