gDPSetTextureConvert.3p
1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.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)