add antialiasing code

This commit is contained in:
Josh Holtrop committed 2011-03-31 22:46:02 -04:00
1 parent 4cc7901c2d
commit 0ce01c7b58
1 file changed
+5
+5
View File
@@ -35,6 +35,11 @@ class SketchWidget:
# GL calls # GL calls
if not gldrawable.gl_begin(glcontext): return if not gldrawable.gl_begin(glcontext): return
# glEnable(GL_BLEND)
# glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
# glEnable(GL_POLYGON_SMOOTH)
# glEnable(GL_LINE_SMOOTH)
gldrawable.gl_end() gldrawable.gl_end()
def reshape(self, glarea, event): def reshape(self, glarea, event):