33 env->
srcRgb = GPU_TEVSOURCES(GPU_PREVIOUS, 0, 0);
38 env->
color = 0xFFFFFFFF;
44 #define _C3D_DEFAULT(x) = x
46 #define _C3D_DEFAULT(x)
54 int param = GPU_TEVSOURCES((
int)s1, (
int)s2, (
int)s3);
66 env->
opRgb = GPU_TEVOPERANDS((
int)o1, (
int)o2, (
int)o3);
74 env->
opAlpha = GPU_TEVOPERANDS((
int)o1, (
int)o2, (
int)o3);
u16 scaleRgb
Definition: texenv.h:14
u16 funcAlpha
Definition: texenv.h:12
u16 funcRgb
Definition: texenv.h:12
u16 scaleAlpha
Definition: texenv.h:14
u32 opAlpha
Definition: texenv.h:10
u32 opAll
Definition: texenv.h:9
u16 srcRgb
Definition: texenv.h:6
u32 color
Definition: texenv.h:13
u32 opRgb
Definition: texenv.h:10
u16 srcAlpha
Definition: texenv.h:6
void C3D_SetTexEnv(int id, C3D_TexEnv *env)
Definition: texenv.c:14
static void C3D_TexEnvColor(C3D_TexEnv *env, u32 color)
Definition: texenv.h:85
void C3D_TexEnvBufColor(u32 color)
Definition: texenv.c:72
C3D_TexEnv * C3D_GetTexEnv(int id)
Definition: texenv.c:3
static void C3D_TexEnvFunc(C3D_TexEnv *env, C3D_TexEnvMode mode, GPU_COMBINEFUNC param)
Definition: texenv.h:77
void C3D_DirtyTexEnv(C3D_TexEnv *env)
Definition: texenv.c:28
static void C3D_TexEnvScale(C3D_TexEnv *env, int mode, GPU_TEVSCALE param)
Definition: texenv.h:90
static void C3D_TexEnvSrc(C3D_TexEnv *env, C3D_TexEnvMode mode, GPU_TEVSRC s1, GPU_TEVSRC s2 _C3D_DEFAULT(GPU_PRIMARY_COLOR), GPU_TEVSRC s3 _C3D_DEFAULT(GPU_PRIMARY_COLOR))
Definition: texenv.h:49
static void C3D_TexEnvOpAlpha(C3D_TexEnv *env, GPU_TEVOP_A o1, GPU_TEVOP_A o2 _C3D_DEFAULT(GPU_TEVOP_A_SRC_ALPHA), GPU_TEVOP_A o3 _C3D_DEFAULT(GPU_TEVOP_A_SRC_ALPHA))
Definition: texenv.h:69
static void C3D_TexEnvInit(C3D_TexEnv *env)
Definition: texenv.h:31
C3D_TexEnvMode
Definition: texenv.h:18
@ C3D_RGB
Definition: texenv.h:19
@ C3D_Both
Definition: texenv.h:21
@ C3D_Alpha
Definition: texenv.h:20
static void C3D_TexEnvOpRgb(C3D_TexEnv *env, GPU_TEVOP_RGB o1, GPU_TEVOP_RGB o2 _C3D_DEFAULT(GPU_TEVOP_RGB_SRC_COLOR), GPU_TEVOP_RGB o3 _C3D_DEFAULT(GPU_TEVOP_RGB_SRC_COLOR))
Definition: texenv.h:61
void C3D_TexEnvBufUpdate(int mode, int mask)
Definition: texenv.c:46
#define _C3D_DEFAULT(x)
Definition: texenv.h:46