Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ setdepth(3G) — GL2 W3.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

setdepth(3G)  —  Silicon Graphics

NAME

setdepth − sets up a 3-D viewport

SPECIFICATION

C
setdepth(near, far)
Screencoord near, far;

FORTRAN
subroutine setdep(near, far)
integer*4 near, far

Pascal
procedure setdepth(near, far: Screencoord);

DESCRIPTION

viewport specifies a mapping from the left, right, bottom, and top clipping planes in world coordinate values to screen coordinate values.  setdepth completes this mapping for homogeneous world coordinates.  The two arguments map the near and far clipping planes to the desired screen coordinate values.  The default is setdepth(0, 1023).  The legal values range from 32767 (0x7FFF) to -32768 (0x8000).  When used for depth-cueing or z-buffering, the range should be restricted to (0x3FFF) to (0xC000). 

The depth is the distance from your eye.  setdepth is used in z-buffering, depth-cueing, and certain feedback applications. 

SEE ALSO

depthcue, endfeedback, feedback, zbuffer Programming Guide, Section 12.1, Z-Buffer Mode

Version 3.6  —  December 20, 1987

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