def draw(self):
     gl.glPushMatrix()
     self.transform()
     gl.glBegin(gl.GL_QUADS)
     gl.glColor4ub(*self.color4)
     for v in self.vertexes:
         gl.glVertex3i(*v)
     gl.glEnd()
     gl.glPopMatrix()
Ejemplo n.º 2
0
 def draw(self):
     gl.glPushMatrix()
     self.transform()
     gl.glBegin(gl.GL_QUADS)
     gl.glColor4ub(*self.color4)
     for v in self.vertexes:
         gl.glVertex3i(*v)
     gl.glEnd()
     gl.glPopMatrix()
Ejemplo n.º 3
0
 def drawBackground(self):
     glColor3f(self.backColour[0],self.backColour[1],self.backColour[2])
     glTranslatef(self.focusX, self.focusY, 0)
     glBegin(GL_QUADS)
     glVertex3i(0, 0, 0)
     glVertex3f(0, float(self.height), 0)
     glVertex3f(float(self.width), float(self.height), 0)
     glVertex3f(float(self.width), 0, 0)
     glEnd()
     glTranslatef(-self.focusX, -self.focusY, 0)
Ejemplo n.º 4
0
 def draw(self):
     gl.glPushMatrix()
     self.transform()
     gl.glBegin(gl.GL_QUADS)
     gl.glColor4ub(*(255, 255, 255, 255))
     for v in self.vertexes_out:
         gl.glVertex3i(*v)
     gl.glColor4ub(*(0, 150, 0, 255))
     for v in self.vertexes_in:
         gl.glVertex3i(*v)
     gl.glEnd()
     gl.glPopMatrix()
Ejemplo n.º 5
0
 def draw(self):
     gl.glPushMatrix()
     self.transform()
     gl.glBegin(gl.GL_QUADS)
     gl.glColor4ub(*(255, 255, 255, 255))
     for v in self.vertexes_out:
         gl.glVertex3i(*v)
     gl.glColor4ub(*(0, 150, 0, 255))
     for v in self.vertexes_in:
         gl.glVertex3i(*v)
     gl.glEnd()
     gl.glPopMatrix()