gDPSetTexturePersp.3p
821 Bytes
.TH gDPSetTexturePersp 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
gDPSetTexturePersp, gsDPSetTexturePersp
\- enable and disable for perspective corrected texture maps.
.SH C SPECIFICATION
.nf
\f3#include "gbi.h"
gDPSetTexturePersp(Gfx *gdl, unsigned int enable)
gsDPSetTexturePersp(unsigned int enable)
\fP
.fi
.SH PARAMETERS
.TP 10
.I *gdl
graphics display list pointer.
.TP
.I enable
\f3G_TP_NONE\fP
or
\f3G_TP_PERSP.\fP
.SH DESCRIPTION
Enables texture perspective correction;
the RDP corrects the texture coordinate at each pixel.
.SH NOTE
Because of assumptions made by the RSP, perspective correction is \f3 required \fP
for all textured triangles (including those drawn with an orthographic projection).
.PP
When drawing texture rectangles (sprites), you should always
disable perspective correction.