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
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