Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/f/l/Flappy-0.3.7/flappy/display3d/vertexbuffer3d.py   Flappy(Download)
    def upload(self, data):
        gl.bindBuffer(gl.ARRAY_BUFFER, self.gl_buffer)
        gl.bufferData(gl.ARRAY_BUFFER, data, gl.STATIC_DRAW)

src/f/l/Flappy-0.3.7/flappy/display3d/indexbuffer3d.py   Flappy(Download)
    def upload(self, data):
        ndata = struct.pack('%sH' % len(data), *data)
        gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, self.gl_buffer)
        gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, ndata, gl.STATIC_DRAW)
        self.num_indeces = len(data)