Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ortho(3g) — GL2 W2.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

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 will be 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 2D clipping rectangle.  When ortho2 is used with 3D world coordinates, the z values are left unchanged. 

Both ortho and ortho2 load a matrix onto the transformation stack, overwriting whatever was there. 

SEE ALSO

perspective, window

Version 2.4  —  May 08, 1986

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026