#include <revolution/gx.h>
void GXSetTevIndirect (GXTevStageID tev_stage,
GXIndTexStageID ind_stage,
GXIndTexFormat format,
GXIndTexBiasSel bias_sel,
GXIndTexMtxID matrix_sel,
GXIndTexWrap wrap_s,
GXIndTexWrap wrap_t,
GXBool add_prev,
GXBool utc_lod,
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. |
||||||||||||||||||||||
| format | Specifies indirect offset and how many bits to extract from the indirect-reference colors used with indirect "bump alpha." Accepted values are:
|
||||||||||||||||||||||
| bias_sel | Indicates whether a bias is applied to each component of the indirect offset. Accepted values are:
GX_ITF_8 format, +1 for other formats. |
||||||||||||||||||||||
| matrix_sel | Specifies which indirect matrix and scale value to use to multiply the offsets. Accepted values are:
|
||||||||||||||||||||||
| wrap_s | Specifies the wrapping factor to apply to S components of regular texture coordinates. Accepted values are:
|
||||||||||||||||||||||
| wrap_t | Specifies the wrapping factor to apply to T components of regular texture coordinates. Accepted values are identical to those for wrap_s. |
||||||||||||||||||||||
| add_prev | Specifies whether the texture coordinate results from the previous TEV stage should be added. | ||||||||||||||||||||||
| utc_lod | Indicates whether to use the unmodified (GX_TRUE) or modified (GX_FALSE) texture coordinates for mipmap LOD calculations. |
||||||||||||||||||||||
| alpha_sel | Indicates which offset component will supply the indirect bump alpha, if any. Accepted values are:
|
None.
This is a general-purpose function used to control how results from an indirect lookup will be used to modify a given regular TEV stage lookup.
GXSetTevDirect, GXSetTevIndBumpST, GXSetTevIndBumpXYZ, GXSetTevIndTile, GXSetTevIndWarp
2006/03/01 Initial version.
CONFIDENTIAL