Configure texture combiner stages (TexEnv)
More...
Go to the source code of this file.
|
C3D_TexEnv * | C3D_GetTexEnv (int id) |
| Gets the global TexEnv for a given stage. More...
|
|
void | C3D_SetTexEnv (int id, C3D_TexEnv *env) |
| Sets the global TexEnv for a given stage. More...
|
|
void | C3D_DirtyTexEnv (C3D_TexEnv *env) |
| Marks a TexEnv as needing to be updated. More...
|
|
void | C3D_TexEnvBufUpdate (int mode, int mask) |
| Configures the stages where the GPU_PREVIOUS_BUFFER source value should be updated with the output of that stage. More...
|
|
void | C3D_TexEnvBufColor (u32 color) |
| Configure the initial value of GPU_PREVIOUS_BUFFER. This value will be kept until it is updated; see C3D_TexEnvBufUpdate(). More...
|
|
static void | C3D_TexEnvInit (C3D_TexEnv *env) |
| Resets a TexEnv to its default values. More...
|
|
static void | C3D_TexEnvSrc (C3D_TexEnv *env, C3D_TexEnvMode mode, GPU_TEVSRC s1, GPU_TEVSRC s2, GPU_TEVSRC s3) |
| Sets the input source of a TexEnv. More...
|
|
static void | C3D_TexEnvOpRgb (C3D_TexEnv *env, GPU_TEVOP_RGB o1, GPU_TEVOP_RGB o2, GPU_TEVOP_RGB o3) |
| Configures the operation to be applied to the input color of a TexEnv before the function is applied. More...
|
|
static void | C3D_TexEnvOpAlpha (C3D_TexEnv *env, GPU_TEVOP_A o1, GPU_TEVOP_A o2, GPU_TEVOP_A o3) |
| Configures the operation to be applied to the input alpha of a TexEnv before the function is applied. More...
|
|
static void | C3D_TexEnvFunc (C3D_TexEnv *env, C3D_TexEnvMode mode, GPU_COMBINEFUNC param) |
| Sets the combiner function to perform in this TexEnv. More...
|
|
static void | C3D_TexEnvColor (C3D_TexEnv *env, u32 color) |
| Sets the value of the GPU_CONSTANT source for a TexEnv stage. More...
|
|
static void | C3D_TexEnvScale (C3D_TexEnv *env, int mode, GPU_TEVSCALE param) |
| Configures the scaling to be applied to the output of a TexEnv. More...
|
|
◆ C3D_TexEnvMode
TexEnv operation mode.
Enumerator |
---|
C3D_RGB | RGB mode.
|
C3D_Alpha | Alpha mode.
|
C3D_Both | Both.
|
◆ C3D_DirtyTexEnv()
Marks a TexEnv as needing to be updated.
- Note
- One must use this if they are continuing to use a TexEnv pointer they got from C3D_GetTexEnv() after performing an action that flushes state.
- Parameters
-
[in] | env | Pointer to a TexEnv struct. |
◆ C3D_GetTexEnv()
Gets the global TexEnv for a given stage.
- Parameters
-
[in] | id | TexEnv stage between 0-5 to return. |
- Returns
- TexEnv of the given stage.
◆ C3D_SetTexEnv()
Sets the global TexEnv for a given stage.
- Parameters
-
[in] | id | TexEnv stage between 0-5 to set. |
[in] | env | Pointer to user TexEnv. |
◆ C3D_TexEnvBufColor()
void C3D_TexEnvBufColor |
( |
u32 |
color | ) |
|
Configure the initial value of GPU_PREVIOUS_BUFFER. This value will be kept until it is updated; see C3D_TexEnvBufUpdate().
- Parameters
-
◆ C3D_TexEnvBufUpdate()
void C3D_TexEnvBufUpdate |
( |
int |
mode, |
|
|
int |
mask |
|
) |
| |
Configures the stages where the GPU_PREVIOUS_BUFFER source value should be updated with the output of that stage.
- Parameters
-
◆ C3D_TexEnvColor()
Sets the value of the GPU_CONSTANT source for a TexEnv stage.
- Parameters
-
[out] | env | Pointer to TexEnv struct. |
[in] | color | RGBA color value to apply. |
◆ C3D_TexEnvFunc()
Sets the combiner function to perform in this TexEnv.
- Parameters
-
[out] | env | Pointer to TexEnv struct. |
[in] | mode | TexEnv update modes (see C3D_TexEnvMode) |
[in] | param | Function to use. |
◆ C3D_TexEnvInit()
Resets a TexEnv to its default values.
- Parameters
-
[out] | env | TexEnv to initialize. |
◆ C3D_TexEnvOpAlpha()
Configures the operation to be applied to the input alpha of a TexEnv before the function is applied.
- Parameters
-
[out] | env | Pointer to TexEnv struct. |
[in] | o1 | Operation to perform on the first source. |
[in] | o2 | Operation to perform on the second source. |
[in] | o3 | Operation to perform on the third source. |
◆ C3D_TexEnvOpRgb()
Configures the operation to be applied to the input color of a TexEnv before the function is applied.
- Parameters
-
[out] | env | Pointer to TexEnv struct. |
[in] | o1 | Operation to perform on the first source. |
[in] | o2 | Operation to perform on the second source. |
[in] | o3 | Operation to perform on the third source. |
◆ C3D_TexEnvScale()
Configures the scaling to be applied to the output of a TexEnv.
- Parameters
-
[out] | env | Pointer to TexEnv struct. |
[in] | mode | TexEnv update modes (see C3D_TexEnvMode) |
[in] | param | Scale factor to apply. |
◆ C3D_TexEnvSrc()
Sets the input source of a TexEnv.
- Parameters
-
[out] | env | Pointer to TexEnv struct. |
[in] | mode | TexEnv update modes (see C3D_TexEnvMode) |
[in] | s1 | First source. |
[in] | s2 | Second source. |
[in] | s3 | Third source. |