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)
                                    gl.TEXTURE_MAG_FILTER, gl.LINEAR)
 
        self._do(gl.bindFramebuffer, gl.FRAMEBUFFER, self._frame_buffer)
        self._set_depth_and_stencil(enable_depth_and_stencil)
        self._do(gl.framebufferTexture2D, gl.FRAMEBUFFER,gl.COLOR_ATTACHMENT0, 
    def setRenderToBackBuffer(self):
        self._render_to_texture = False
        self._do(gl.bindFramebuffer, gl.FRAMEBUFFER, 0)
        self._set_depth_and_stencil(self._depth_n_stencil)
        sr = self.scrollRect
        gl.bindBuffer(gl.ARRAY_BUFFER, 0)
        gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, 0)
        gl.bindFramebuffer(gl.FRAMEBUFFER, 0)
        gl.viewport(0.0, 0.0, self.stage.stageWidth, self.stage.stageHeight)