ortho() — Silicon Graphics
NAME
ortho − defines an orthographic projection transformation
SPECIFICATION
C
ortho(left, right, bottom, top, near, far)
Coord left, right, bottom, top, near, far;
ortho2(left, right, bottom, top)
Coord left, right, bottom, top;
FORTRAN
subroutine ortho(left, right, bottom, top, near, far)
real left, right, bottom, top, near, far
subroutine ortho2(left, right, bottom, top)
real left, right, bottom, top
Pascal
procedure ortho(left, right, bottom, top, near, far: Coord);
procedure ortho2(left, right, bottom, top: Coord);
DESCRIPTION
ortho specifies a box-shaped enclosure in the eye coordinate system that is mapped to the viewport. left, right, bottom, and top are the x and y clipping planes. near and far are distances along the line of sight from the eye space origin, and can be negative. The z clipping planes are at −near and −far.
ortho2 defines a two-dimensional clipping rectangle. When you use ortho2 with 3D world coordinates, the z values do not change.
Both ortho and ortho2 load a matrix onto the transformation stack, overwriting what was there.
SEE ALSO
perspective, window IRIS Graphics Programming, Section 4.3, Projection Transformations
Version 2.5r1 — October 29, 1986