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

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

src/f/l/Flappy-0.3.7/flappy/display3d/scene3d.py   Flappy(Download)
    def setProgramConstantFromMatrix(self, locname, mat, transpose=False):
        loc = gl.getUniformLocation(self._current_prog.gl_program, locname)
        self._do(gl.uniformMatrix, loc, transpose, mat)
 
    def setProgramConstant(self, locname, data):
        loc = gl.getUniformLocation(self._current_prog.gl_program, locname)
    def setTextureAt(self, locname, texture, texture_index=0):
        loc = gl.getUniformLocation(self._current_prog.gl_program, locname)
 
        assert 0 <= texture_index < 8, \
                    'Texture index "%s" is not supported' % str(texture_index)