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 __del__(self):
        gl.deleteBuffer(self.gl_buffer)
 
    def upload(self, data):
        gl.bindBuffer(gl.ARRAY_BUFFER, self.gl_buffer)

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