gDPSetTileSize

gDPSetTileSize [Macro]

Function

gDPSetTileSize

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
Display list pointer.
tile
Tile descriptor index (3-bit precision, 0~7).
uls
Texture tile's upper-left s coordinate (10.2, 0.0~1023.75).
ult
Texture tile's upper-left t coordinate (10.2, 0.0~1023.75).
lrs
Texture tile's lower-right s coordinate (10.2, 0.0~1023.75).
lrt
Texture tile's lower-right t coordinate (10.2, 0.0~1023.75).

Description

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.9 "SL, TL" Section 13.4.10 "SH, TH" and Section 13.5 "Tile Descriptor Loading" in the N64 Programming Manual.

See Also

gDPSetTextureDetail, gDPSetTextureFilter, gDPSetTextureLOD, gDPSetTextureLUT, gDPSetTexturePersp, and gSPTexture

Revision History

02/01/99 Completely rewritten.