Esempio n. 1
0
def get_scissor():
    rect = (GL.GLint * 4)()
    GL.glGetIntegerv(GL.GL_SCISSOR_BOX, rect)
    return rectangle.create_from_position(x=rect[0],
                                          y=rect[1],
                                          width=rect[2],
                                          height=rect[3])
Esempio n. 2
0
def get_viewport():
    rect = (GL.GLint * 4)()
    GL.glGetIntegerv(GL.GL_VIEWPORT, rect)
    return rectangle.create_from_position(x=rect[0],
                                          y=rect[1],
                                          width=rect[2],
                                          height=rect[3])
Esempio n. 3
0
def get_scissor():
    rect = (GL.GLint * 4)()
    GL.glGetIntegerv( GL.GL_SCISSOR_BOX, rect )
    return rectangle.create_from_position(
        x = rect[ 0 ],
        y = rect[ 1 ],
        width = rect[ 2 ],
        height = rect[ 3 ]
        )
Esempio n. 4
0
def get_viewport():
    rect = (GL.GLint * 4)()
    GL.glGetIntegerv( GL.GL_VIEWPORT, rect )
    return rectangle.create_from_position(
        x = rect[ 0 ],
        y = rect[ 1 ],
        width = rect[ 2 ],
        height = rect[ 3 ]
        )