示例#1
0
   def draw(self):
      transparency(True)      # should be True for vortex

      glBlendFunc(GL_SRC_ALPHA, GL_ONE); 

      # the following 3 lines are necessary to get backs drawn on strips
      glDepthMask(GL_FALSE)     
      glDisable(GL_CULL_FACE)
      glCullFace(GL_BACK)
      
      self.texture.bind()
      color(self.color)
      self.buffer.draw(style='solid')
      self.texture.unbind()
示例#2
0
 def draw(self):
       
    color(self.color)
    self.buffer.draw(style='solid')
示例#3
0
 def draw(self):
    color(self.color)
    self.texture.bind()
    self.dream.draw(style='solid')
    self.texture.unbind()
示例#4
0
 def draw(self):
    if self.age < self.history:
       return
    color(self.color)
    self.buffer.draw(style='solid')