add antialiasing code
This commit is contained in:
1 parent
4cc7901c2d
commit
0ce01c7b58
1 file changed
+5
@@ -35,6 +35,11 @@ class SketchWidget:
|
||||
# GL calls
|
||||
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()
|
||||
|
||||
def reshape(self, glarea, event):
|
||||
|
||||
Reference in new issue
Block a user