glOrtho

multiply the current matrix with an orthographic matrix

Signature

glOrtho( GLdouble ( left ) , GLdouble ( right ) , GLdouble ( bottom ) , GLdouble ( top ) , GLdouble ( nearVal ) , GLdouble ( farVal ) )-> void
glOrtho( left , right , bottom , top , zNear , zFar )

Parameters

VariablesDescription
left, right
Specify the coordinates for the left and right vertical clipping planes.
bottom, top
Specify the coordinates for the bottom and top horizontal clipping planes.
nearVal, farVal
Specify the distances to the nearer and farther depth clipping planes. These values are negative if the plane is to be behind the viewer.

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glOrtho
OpenGLContext tests/glutbitmapcharacter.py Lines: 20
OpenGLContext tests/glhistogram.py Lines: 58
OpenGLContext tests/gldrawpixels.py Lines: 71
OpenGLContext tests/gldrawpixelssynth.py Lines: 51
OpenGLContext OpenGLContext/framecounter.py Lines: 63
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/arraytest.py Lines: 62
OpenGL-Demo PyOpenGL-Demo/tom/Line.py Lines: 13
OpenGL-Demo PyOpenGL-Demo/tom/arraytest.py Lines: 30
OpenGL-Demo PyOpenGL-Demo/tom/poly.py Lines: 43
OpenGL-Demo PyOpenGL-Demo/redbook/double.py Lines: 92
OpenGL-Demo PyOpenGL-Demo/redbook/teapots.py Lines: 185, 187
OpenGL-Demo PyOpenGL-Demo/redbook/scene.py Lines: 112, 115
OpenGL-Demo PyOpenGL-Demo/redbook/drawf.py Lines: 94
OpenGL-Demo PyOpenGL-Demo/redbook/fog.py Lines: 120, 122
OpenGL-Demo PyOpenGL-Demo/redbook/hello.py Lines: 84
OpenGL-Demo PyOpenGL-Demo/da/dots.py Lines: 90
Glinter Widget.py Lines: 56
{Artistic License} PymmLib applications/glutviewer.py Lines: 173
{Artistic License} PymmLib mmLib/OpenGLDriver.py Lines: 146
{LGPL} PyUI pyui/renderers/openglBase.py Lines: 310
{LGPL} PyUI pyui/renderers/openglPygame.py Lines: 184
{LGPL} PyUI2 renderers/openglBase.py Lines: 310
{LGPL} PyUI2 renderers/openglPygame.py Lines: 187
{LGPL} PyUI2 system/openglgraphics.py Lines: 188
{LGPL} Pyggel pyggel/view.py Lines: 283
{LGPL} pygl2d pygl2d/window.py Lines: 72
{GPL} Scocca scocca/graphics/opengl/projections.py Lines: 33
Visvis core/cameras.py Lines: 75
{GPL3} OpenGL-Programmable 01-direct.py Lines: 128
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 232
{GPL3} OpenGL-Programmable 03-array.py Lines: 139
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 265
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 137
{GPL3} OpenGL-Programmable 05-shader.py Lines: 224
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 243
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 158