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
|
|
gDPSetTextureFilter
Format
#include "gbi.h"
gDPSetTextureFilter(Gfx *gdl,
unsigned int type)
gsDPSetTextureFilter(unsigned int type)
Arguments
- gdl is the pointer to the graphics display list
- mode is type of filter (G_TF_POINT, G_TF_AVERAGE, or G_TF_BILERP)
What This Macro Does
It sets the type of filter used when sampling a texture tile:
- G_TF_POINT point samples the texture tile. The closest texel to the screen pixel center is selected.
- G_TF_AVERAGE configures the TF to do a box filter on the four texels surrounding the pixel center.
- G_TF_BILERP configures the TF to do a bilinear filter on the 4 texels surrounding the pixel center. Two bilinear interpolated tiles can be sent to the CC for another linear interpolation to do a MIP map filter. As an optimization, the TF does not perform a true bilinear interpolation; it linearly interpolates the three closest texels.
|
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
Nintendo of America Inc. All rights reserved Nintendo and N64 are registered trademarks of Nintendo
Last updated January 1998
|
|