Commit 43df7b39 authored by sumpfralle's avatar sumpfralle

fixed opacity of debugging OpengGL visualization for triangles


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@690 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 2ec6120e
......@@ -146,7 +146,7 @@ class Triangle(TransformableContainer):
for ch in str(self.id):
w += GLUT.glutStrokeWidth(GLUT.GLUT_STROKE_ROMAN, ord(ch))
GL.glTranslate(-w/2, 0, 0)
GL.glColor4f(1, 1, 1, 0)
GL.glColor4f(1, 1, 1, 1)
for ch in str(self.id):
GLUT.glutStrokeCharacter(GLUT.GLUT_STROKE_ROMAN, ord(ch))
GL.glPopMatrix()
......@@ -171,7 +171,7 @@ class Triangle(TransformableContainer):
for ch in str(p.id):
w += GLUT.glutStrokeWidth(GLUT.GLUT_STROKE_ROMAN, ord(ch))
GL.glTranslate(-w/2, 0, 0)
GL.glColor4f(0.5, 1, 0.5, 0)
GL.glColor4f(0.5, 1, 0.5, 1.0)
for ch in str(p.id):
GLUT.glutStrokeCharacter(GLUT.GLUT_STROKE_ROMAN, ord(ch))
GL.glPopMatrix()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment