N64® Functions Menu

al - Audio Library Functions
gDP - DP GBI Macros
gdSP - General GBI Macros
gSP - SP GBI Macros
gt - Turbo Microcode RDP
gu - Graphics Utilities
Math - Math Functions
nuSys - NuSystem
os - N64 Operating System
sp - Sprite Library Functions
uh - Host to Target IO
64DD - N64 Disk Drive

Nintendo® Confidential





gDPSetTextureConvert [macro]

Syntax

#include "gbi.h"

gDPSetTextureConvert(Gfx *gdl,
   unsigned int type)
gsDPSetTextureConvert(unsigned int type)

Arguments

  • gdl is the pointer to the graphics display list.

  • type is the type
    G_TC_CONV
    G_TC_FILTCONV
    G_TC_FILT)

Explanation
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).

Notes
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




Nintendo® Confidential

Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.


Copyright © 1998-1999
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last Updated April, 1999