class opengl.GLOrtho(GLViewport)GLOrtho provides an OpenGL drawing area with an orthographic projection.
Using a GLOrtho widget is the same as using a GLViewport, except that you do not need to provide a setup_projection() method.
- GLOrtho(rect = None, xmin = -1, xmax = 1, ymin = -1, ymax = 1, near = -1, far = 1)
- Creates a GLOrtho instance with the given initial values for its projection parameters.
- xmin, xmax, ymin, ymax, near, far
- The projection parameters, as used by glOrtho(). You can change these to dynamically modify the projection.