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/scene3d.py   Flappy(Download)
    def setProgram(self, program):
        self._current_prog = program
        self._do(gl.useProgram, program.gl_program)
        gl.useProgram(program.gl_program)
 
        gl.disable(gl.DEPTH_TEST)
 
        gl.useProgram(0)
        gl.bindBuffer(gl.ARRAY_BUFFER, 0)
        gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, 0)