def bind(self): gl2.glBindBuffer(gl2.GL_ARRAY_BUFFER, self.buffer)
def buffer_data(self, data): gl2.glBindBuffer(gl2.GL_ARRAY_BUFFER, self.buffer) gl2.glBufferData(gl2.GL_ARRAY_BUFFER, len(data), data, gl2.GL_STATIC_DRAW) gl2.glBindBuffer(gl2.GL_ARRAY_BUFFER, 0)