예제 #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
파일: dream.py 프로젝트: jvan/dream-vortex
 def draw(self):
    color(self.color)
    self.texture.bind()
    self.dream.draw(style='solid')
    self.texture.unbind()
예제 #4
0
파일: vortex.py 프로젝트: jvan/dream-vortex
 def draw(self):
    if self.age < self.history:
       return
    color(self.color)
    self.buffer.draw(style='solid')