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





gDPSetTileSize [macro]

Sets the tile descriptor parameters.

Syntax

#include <ultra64.h> /* gbi.h */
gDPSetTileSize(Gfx *gdl, u32 tile, u32 uls, u32 ult, u32 lrs, u32 lrt )
gsDPSetTileSize(u32 tile, u32 uls, u32 ult, u32 lrs, u32 lrt )

Arguments

  • gdl is the dsplay list pointer.
  • tile is the tile descriptor index (3-bit precision, 0~7).
  • uls is the texture tile's upper-left s coordinate (10.2, 0.0~1023.75).
  • ult is the texture tile's upper-left t coordinate (10.2, 0.0~1023.75).
  • lrs is the texture tile's lower-right s coordinate (10.2, 0.0~1023.75).
  • lrt is the texture tile's lower-right t coordinate (10.2, 0.0~1023.75).

Explanation
Sets the parameters of a tile descriptor defining the origin and range of a texture tile.

uls, ult
Defines the s,t texture coordinates at the tile origin. This is used when shifting a texture to straddle the face of a polygon. It also defines the lower-limit boundary when clamping.
lrs, lrt
Used when clamping to define the upper-limit boundary.

For details, see Section 13.4, "Tile Attributes," and Section 13.5, "Tile Descriptor Loading," in the N64 Online Programming Manual.

See Also
gDPSetTextureDetail
gDPSetTextureFilter
gDPSetTextureLOD
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