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])
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])
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 ] )
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 ] )