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

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

src/f/l/Flappy-0.3.7/flappy/display3d/scene3d.py   Flappy(Download)
 
        self._do(gl.uniform1i, loc, texture_index)
        self._do(gl.texParameter, gl.TEXTURE_2D,
                        gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE)
        self._do(gl.texParameter, gl.TEXTURE_2D,
                        gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE)
        self._do(gl.texParameter, gl.TEXTURE_2D,
                        gl.TEXTURE_MIN_FILTER, gl.LINEAR)
        self._do(gl.texParameter, gl.TEXTURE_2D,
 
        self._do(self._bind_texture, texture)
        self._do(gl.texParameter, gl.TEXTURE_2D,
                                    gl.TEXTURE_WRAP_S, gl.REPEAT)
        self._do(gl.texParameter, gl.TEXTURE_2D,

src/f/l/Flappy-0.3.7/flappy/display3d/texture.py   Flappy(Download)
        self.height = height
 
        gl.bindTexture(gl.TEXTURE_2D, self.gl_texture)
        gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, width, height, 0, gl.RGBA, gl.UNSIGNED_BYTE, 0)