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

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

src/p/y/PyGLy-HEAD/pygly/examples/scene_multiple_viewports.py   PyGLy(Download)
            # update the viewport
            self.viewport = pyrr.rectangle.create_from_position(
                x = 0,
                y = 0,
                width = half_width,
                height = height
                )
 
            self.viewport2 = pyrr.rectangle.create_from_position(
                x = half_width,

src/p/y/PyGLy-HEAD/pygly/examples/scene_texture.py   PyGLy(Download)
    def on_window_resized( self, width, height ):
        # update the viewport
        self.viewport = pyrr.rectangle.create_from_position(
            x = 0,
            y = 0,

src/p/y/PyGLy-HEAD/pygly/examples/scene_sorting.py   PyGLy(Download)
    def on_window_resized( self, width, height ):
        # update the viewport
        self.viewport = pyrr.rectangle.create_from_position(
            x = 0,
            y = 0,

src/p/y/PyGLy-HEAD/pygly/examples/scene_scene_graph.py   PyGLy(Download)
    def on_window_resized( self, width, height ):
        # update the viewport
        self.viewport = pyrr.rectangle.create_from_position(
            x = 0,
            y = 0,

src/p/y/PyGLy-HEAD/pygly/examples/scene_orthographic.py   PyGLy(Download)
    def on_window_resized( self, width, height ):
        # update the viewport
        self.viewport = pyrr.rectangle.create_from_position(
            x = 0,
            y = 0,

src/p/y/PyGLy-HEAD/pygly/examples/scene_basic.py   PyGLy(Download)
    def on_window_resized( self, width, height ):
        # update the viewport
        self.viewport = pyrr.rectangle.create_from_position(
            x = 0,
            y = 0,

src/p/y/PyGLy-HEAD/pygly/viewport.py   PyGLy(Download)
def get_viewport():
    rect = (GL.GLint * 4)()
    GL.glGetIntegerv( GL.GL_VIEWPORT, rect )
    return rectangle.create_from_position(
        x = rect[ 0 ],
def get_scissor():
    rect = (GL.GLint * 4)()
    GL.glGetIntegerv( GL.GL_SCISSOR_BOX, rect )
    return rectangle.create_from_position(
        x = rect[ 0 ],