#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 |
the TEV stage to be set Accepted values are: GX_TEVSTAGE0, GX_TEVSTAGE1, GX_TEVSTAGE2 through GX_TEVSTAGE15. |
||||||||||||||||||
ind_stage |
the indirect stage results sued with this TEV stage Accepted values are: GX_INDTEXSTAGE0, GX_INDTEXSTAGE1, GX_INDTEXSTAGE2 and GX_INDTEXSTAGE3. |
||||||||||||||||||
tilesize_s |
the size of the tile in the S dimension Applicable values are 16, 32, 64, 128 and 256. |
||||||||||||||||||
tilesize_t |
the size of the tile in the T dimension Applicable values are 16, 32, 64, 128 and 256. |
||||||||||||||||||
tilespacing_s |
the spacing of the tiles (in the tile-definition map) in the S dimension | ||||||||||||||||||
tilespacing_t |
the spacing of the tiles (in the tile-definition map) in the T dimension | ||||||||||||||||||
format |
which indirect texture format to use Accepted values are:
|
||||||||||||||||||
matrix_sel |
The indirect matrix and scale value to multiply the offsets by. | ||||||||||||||||||
bias_sel |
the tile stacking direction for pseudo-3D textures Accepted values are:
|
||||||||||||||||||
alpha_sel |
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. GXSetIndTexCoordScale can be used to use the same texcoord for the indirect stage as for the regular TEV stage.
GXSetTevIndirect
GXSetTexCoordScaleManually
GXSetIndTexCoordScale
03/01/2006 Initial version.