def __init__(self, data=None): self.gl_buffer = gl.createBuffer() self.num_indeces = 0 if data: self.upload(data)
def __init__(self, data32_per_vertex, data=None): self.gl_buffer = gl.createBuffer() self.data32_per_vertex = data32_per_vertex if data: self.upload(data)