Ejemplo n.º 1
0
 def unbind(self):
     """
     Unbind a buffer object from its target after use.
     Failure to do this can kill Python on some graphics platforms!
     """
     glBindBufferARB(self.target, 0)
     return
Ejemplo n.º 2
0
 def bind(self):
     """
     Have to bind a particular buffer to its target to fill or draw from it.
     Don't forget to unbind() it!
     """
     glBindBufferARB(self.target, self.buffer)
     return