gDPSetTextureLOD [Macro]

Function

gDPSetTextureLOD

Enables/disables LOD (MIP-map) textures

Syntax

#include <ultra64.h>        /* gbi.h */
gDPSetTextureLOD(Gfx *gdl, u32 mode)
gsDPSetTextureLOD(         u32 mode)

Arguments

gdl
Display list pointer.

mode
Texture mode.
G_TL_TILE(LOD tile selection OFF)
G_TL_LOD(LOD tile selection ON)

Description

Enables/disables texture sampling of LOD (MIP-map) textures. The texture modes are explained below:

G_TL_TILE
Turns LOD tile selection OFF.
In 1-cycle mode, the tile selected with gSPTexture is used for texture processing. In 2-cycle mode, the color combiner (CC) receives texels from both the tile selected with gSPTexture and from that tile + 1. This pair of texture tiles can be used as a dual-texture tile.
G_TL_LOD
Selects a pair of tiles from a series of texture tiles.
LOD determines which pair of tiles will be selected. The CC uses texels sampled from this pair of tiles to perform MIP-mapping. Linear interpolation is performed on the two texel samples using the LOD factor in order to create the final MIP-mapped texel.
For details, please see Sections 12.4.6 "Texture Sample Mode," 13.7.2 "LOD Disable" and 13.7.3 "LOD Enable" in the N64 Programming Manual.

See Also

gDPSetCombineMode, gDPSetTextureDetail, gDPSetTextureLUT, gDPSetTexturePersp, and gSPTexture

Revision History

02/01/99   Completely rewritten