gDPSetDepthSource.3p
806 Bytes
.TH gDPSetDepthSource 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
gDPSetDepthSource, gsDPSetDepthSource
\- set which source z to use to compare against depth buffer
.SH C SPECIFICATION
.nf
\f3#include "gbi.h"
gDPSetDepthSource(Gfx *gdl, unsigned int source)
gsDPSetDepthSource(unsigned int source)
\fP
.fi
.SH PARAMETERS
.TP 10
.I *gdl
graphics display list pointer.
.TP
.I source
\f3G_ZS_PIXEL\fP
or
\f3G_ZS_PRIM\fP
.SH DESCRIPTION
\f3G_ZS_PIXEL\fP uses the iterated z and deltaZ values for comparing against
the depth buffer. This is the typical usage for a zbuffered application.
.PP
\f3G_ZS_PRIM\fP uses the primitive depth and primitive deltaZ in BL to
compare against the depth buffer.
In this mode, all pixels within a triangle have constant depth.
.SH SEE ALSO
.IR gDPSetPrimDepth (3P)