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





gDPSetTextureLOD [macro]

Enables/disables LOD (MIP-map) textures.

Syntax

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

Arguments

  • gdl is the display list pointer.

  • mode is the texture mode.
    G_TL_TILE (LOD tile selection OFF)

    G_TL_LOD(LOD tile selection ON)

Explanation
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 Section 12.4.6, "Texture-Sampling Modes," and Section 13.7.2, "LOD Disabled" and 13.7.3, "LOD Enabled,"in the N64 Online Programming Manual.

See Also
gDPSetCombineMode
gDPSetTextureDetail
gDPSetTextureLUT
gDPSetTexturePersp
gSPTexture

Revision History
2/1/99 Completely rewritten.




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