예제 #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])
예제 #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])
예제 #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 ]
        )
예제 #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 ]
        )