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)
    def _set_depth_and_stencil(self, value):
        if value:
            self._do(gl.enable, gl.DEPTH_TEST)
            self._do(gl.enable, gl.DEPTH_STENCIL)
        else:
            self._do(gl.disable, gl.DEPTH_TEST)
            self._do(gl.disable, gl.DEPTH_STENCIL)                 
            (self._render_to_texture and self._fb_depth_n_stencil):
            gl.enable(gl.DEPTH_TEST)
            gl.enable(gl.DEPTH_STENCIL)
 
        gl.viewport(rect.x, rect.y, rect.width, rect.height)