gDPSetTextureConvert.3p 1.04 KB
.TH gDPSetTextureConvert 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
gDPSetTextureConvert, gsDPSetTextureConvert
\- texture filter control and color conversion.
.SH C SPECIFICATION
.nf
\f3#include "gbi.h"

gDPSetTextureConvert(Gfx *gdl, unsigned int type)

gsDPSetTextureConvert(unsigned int type)

\fP
.fi
.SH PARAMETERS
.TP 10
.I *gdl
graphics display list pointer.
.TP
.I type
\f3G_TC_CONV,\fP
\f3G_TC_FILTCONV,\fP
or
\f3G_TC_FILT.\fP

.SH DESCRIPTION
This macro controls the texture filter unit, selecting whether
the output should be filtered
.B (G_TC_FILT),
color-converted from YUV to RGB
.B (G_TC_CONV),
or both color-converted and filtered
.B (G_TC_FILTCONV).
.PP

.SH NOTE
The default hardware state (mode bits all 0's) represents
.B G_TC_CONV,
which is not a very good default state, since it is rarely
used.
.PP
A very common bug is to have your filtered, textured, display 
list completed, yet the texture still looks incorrect due
to a missing
.B G_TC_FILT
(inadvertently color-converting the texture).

.SH SEE ALSO
.IR gDPSetConvert (3P)