17        struct { 
u32 opRgb:12, opAlpha:12; };
 
   19    u16 funcRgb, funcAlpha;
 
   21    u16 scaleRgb, scaleAlpha;
 
 
   73    env->srcAlpha   = env->srcRgb;
 
   76    env->funcAlpha  = env->funcRgb;
 
   77    env->color      = 0xFFFFFFFF;
 
 
   83#define _C3D_DEFAULT(x) = x 
   85#define _C3D_DEFAULT(x) 
  105        env->srcAlpha = param;
 
 
  132    GPU_TEVOP_A o2 _C3D_DEFAULT(GPU_TEVOP_A_SRC_ALPHA),
 
  133    GPU_TEVOP_A o3 _C3D_DEFAULT(GPU_TEVOP_A_SRC_ALPHA))
 
 
  147        env->funcRgb = param;
 
  149        env->funcAlpha = param;
 
 
  171        env->scaleRgb = param;
 
  173        env->scaleAlpha = param;
 
 
#define GPU_TEVOPERANDS(a, b, c)
 
#define GPU_TEVSOURCES(a, b, c)
 
TexEnv stage configuration.
Definition texenv.h:12
 
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.
Definition texenv.h:115
 
C3D_TexEnv * C3D_GetTexEnv(int id)
Gets the global TexEnv for a given stage.
 
void C3D_SetTexEnv(int id, C3D_TexEnv *env)
Sets the global TexEnv for a given stage.
 
static void C3D_TexEnvColor(C3D_TexEnv *env, u32 color)
Sets the value of the GPU_CONSTANT source for a TexEnv stage.
Definition texenv.h:157
 
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.
Definition texenv.h:130
 
void C3D_TexEnvBufColor(u32 color)
Configure the initial value of GPU_PREVIOUS_BUFFER. This value will be kept until it is updated; see ...
 
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.
Definition texenv.h:96
 
static void C3D_TexEnvFunc(C3D_TexEnv *env, C3D_TexEnvMode mode, GPU_COMBINEFUNC param)
Sets the combiner function to perform in this TexEnv.
Definition texenv.h:144
 
void C3D_DirtyTexEnv(C3D_TexEnv *env)
Marks a TexEnv as needing to be updated.
 
static void C3D_TexEnvScale(C3D_TexEnv *env, int mode, GPU_TEVSCALE param)
Configures the scaling to be applied to the output of a TexEnv.
Definition texenv.h:168
 
static void C3D_TexEnvInit(C3D_TexEnv *env)
Resets a TexEnv to its default values.
Definition texenv.h:70
 
C3D_TexEnvMode
TexEnv operation mode.
Definition texenv.h:26
 
@ C3D_RGB
RGB mode.
Definition texenv.h:27
 
@ C3D_Both
Both.
Definition texenv.h:29
 
@ C3D_Alpha
Alpha mode.
Definition texenv.h:28
 
void C3D_TexEnvBufUpdate(int mode, int mask)
Configures the stages where the GPU_PREVIOUS_BUFFER source value should be updated with the output of...