def get_viewport(self):
        viewport = (GLint * 4)()
        glGetIntegerv(GL_VIEWPORT, viewport)
        return viewport
Get the current OpenGL viewport dimensions.
dataset/ETHPy150Open ardekantur/pyglet/pyglet/image/__init__.py/BufferManager.get_viewport