#include <revolution/gx.h>
void GXSetTevIndTile( GXTevStageID tev_stage,
GXIndTexStageID ind_stage,
u16 tilesize_s,
u16 tilesize_t,
u16 tilespacing_s,
u16 tilespacing_t,
GXIndTexFormat format,
GXIndTexMtxID matrix_sel,
GXIndTexBiasSel bias_sel,
GXIndTexAlphaSel alpha_sel);
| tev_stage | TEV stage to be set. Accepted values are: GX_TEVSTAGE0, GX_TEVSTAGE1, GX_TEVSTAGE2, ... , GX_TEVSTAGE15. |
||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ind_stage | The indirect stage results used with this TEV stage. Accepted values are: GX_INDTEXSTAGE0, GX_INDTEXSTAGE1, GX_INDTEXSTAGE2 and GX_INDTEXSTAGE3. |
||||||||||||||||||
| tilesize_s | Size of the tile in the S direction. Applicable values are 16, 32, 64, 128 and 256. |
||||||||||||||||||
| tilesize_t | Size of the tile in the T direction. Applicable values are 16, 32, 64, 128 and 256. |
||||||||||||||||||
| tilespacing_s | Spacing of the tiles (in the tile definition map) in the S direction. | ||||||||||||||||||
| tilespacing_t | Spacing of the tiles (in the tile-definition map) in the T direction. | ||||||||||||||||||
| format | Specifies which indirect texture format to use. Accepted values are:
|
||||||||||||||||||
| matrix_sel | The indirect matrix and scale value to multiply the offsets by. | ||||||||||||||||||
| bias_sel | Tile stacking direction for pseudo-3D textures. Accepted values are:
|
||||||||||||||||||
| alpha_sel | Specifies which offset component will supply the indirect bump alpha, if any (for pseudo-3D textures). Accepted values are:
|
None.
This function can be used to implement tile textures that use indirect textures. It will set up the correct values in the given indirect matrix; you only need to specify which matrix slot to use.
Be aware that the regular texture map contains only the tile definitions. The actual texture size to be applied to the polygon being drawn is the product of the base tile size and the size of the indirect map. The GXSetTexCoordScaleManually function must be called to set the appropriate texture coordinate scale. The GXSetIndTexCoordScale function can also be used to use the same texture coordinates for the indirect stage as for the regular TEV stage.
GXSetTevIndirect, GXSetTexCoordScaleManually, GXSetIndTexCoordScale
2006/03/01 Initial version.
CONFIDENTIAL