Exemplo n.º 1
0
def on_draw():
    rule_plot_window.clear()
    for bar in rule_bars:
        graphics.glColor3f(0, 0, 255)
        graphics.draw(4, pyg.gl.GL_QUADS, ('v2f', bar))

    graphics.glColor3f(0, 0, 0)
    graphics.glLineWidth(3)
    graphics.draw(2, pyg.gl.GL_LINES, ('v2f', (10.,30., 380., 30.)))
    graphics.draw(2, pyg.gl.GL_LINES, ('v2f',(10.,29., 10., 255)))
Exemplo n.º 2
0
 def unset_state(self):
     gl.glPolygonMode(gl.GL_FRONT_AND_BACK, gl.GL_FILL)
     gl.glLineWidth(1)
Exemplo n.º 3
0
 def unset_state(self):
     gl.glPolygonMode(gl.GL_FRONT_AND_BACK, gl.GL_FILL)
     gl.glLineWidth(1)
Exemplo n.º 4
0
 def set_state(self):
     gl.glLineWidth(self.thickness)
     gl.glColor3d(0, 0, 0)
     gl.glPolygonMode(gl.GL_FRONT_AND_BACK, gl.GL_LINE)
Exemplo n.º 5
0
 def set_state(self):
     gl.glLineWidth(self.thickness)
     gl.glColor3d(0, 0, 0)
     gl.glPolygonMode(gl.GL_FRONT_AND_BACK, gl.GL_LINE)