gDPSetTextureConvert [Macro]

Function

gDPSetTextureConvert, gsDPSetTextureConvert

Controls the texture filter unit and converts the color

Syntax

#include "gbi.h"
gDPSetTextureConvert(Gfx *gdl, unsigned int type)
gsDPSetTextureConvert(         unsigned int type)

Arguments

*gdl
Pointer to graphics display list

type
G_TC_CONV, G_TC_FILTCONV, G_TC_FILT

Description

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

Note

The default hardware state (mode bits all 0s) represents G_TC_CONV, which is not a very good default state because it is rarely used.

A common bug is to have your filtered, textured, display list completed, yet the texture still looks incorrect due to a missing G_TC_FILT, which inadvertently color-converts the texture.

See Also

gDPSetConvert