77 set->
X = (float)rgb.
R / 255.0f;
78 set->
Y = (float)rgb.
G / 255.0f;
79 set->
Z = (float)rgb.
B / 255.0f;
84 color->
R = (
uint8)(255.0f * v.
X);
85 color->
G = (
uint8)(255.0f * v.
Y);
86 color->
B = (
uint8)(255.0f * v.
Z);
92 set->
X = (float)rgb.
R / 255.0f;
93 set->
Y = (float)rgb.
G / 255.0f;
94 set->
Z = (float)rgb.
B / 255.0f;
95 set->
W = (float)rgb.
A / 255.0f;
100 color->
R = (
uint8)(255.0f * v.
X);
101 color->
G = (
uint8)(255.0f * v.
Y);
102 color->
B = (
uint8)(255.0f * v.
Z);
103 color->
A = (
uint8)(255.0f * v.
W);
int W3d_Shader_Get_Depth_Compare(const W3dPS2ShaderStruct *s)
void W3d_Shader_Reset(W3dShaderStruct *s)
int W3d_Shader_Get_Pri_Gradient(const W3dPS2ShaderStruct *s)
int W3d_Shader_Get_Src_Blend_Func(const W3dShaderStruct *s)
int W3d_Shader_Get_Detail_Alpha_Func(const W3dShaderStruct *s)
void W3d_Shader_Set_Dest_Blend_Func(W3dShaderStruct *s, int val)
void W3d_Shader_Set_Texturing(W3dShaderStruct *s, int val)
void W3d_Shader_Set_Depth_Mask(W3dShaderStruct *s, int val)
int W3d_Shader_Get_Detail_Color_Func(const W3dShaderStruct *s)
void W3d_Shader_Set_Pri_Gradient(W3dShaderStruct *s, int val)
void W3d_Shader_Set_Src_Blend_Func(W3dShaderStruct *s, int val)
void W3d_Shader_Set_Post_Detail_Color_Func(W3dShaderStruct *s, int val)
void W3d_Shader_Set_Post_Detail_Alpha_Func(W3dShaderStruct *s, int val)
int W3d_Shader_Get_Alpha_Test(const W3dPS2ShaderStruct *s)
int W3d_Shader_Get_Depth_Mask(const W3dPS2ShaderStruct *s)
int W3d_Shader_Get_Sec_Gradient(const W3dShaderStruct *s)
void W3d_Shader_Set_Depth_Compare(W3dShaderStruct *s, int val)
int W3d_Shader_Get_Dest_Blend_Func(const W3dShaderStruct *s)
int W3d_Shader_Get_Texturing(const W3dPS2ShaderStruct *s)
void W3d_Shader_Set_Alpha_Test(W3dShaderStruct *s, int val)
void W3d_Shader_Set_Sec_Gradient(W3dShaderStruct *s, int val)
void Set_Texturing(TexturingType x)
DepthCompareType Get_Depth_Compare(void) const
void Set_Src_Blend_Func(SrcBlendFuncType x)
void Set_Post_Detail_Alpha_Func(DetailAlphaFuncType x)
DetailColorFuncType Get_Post_Detail_Color_Func(void) const
void Set_Depth_Compare(DepthCompareType x)
void Set_Depth_Mask(DepthMaskType x)
void Set_Primary_Gradient(PriGradientType x)
DetailAlphaFuncType Get_Post_Detail_Alpha_Func(void) const
TexturingType Get_Texturing(void) const
SecGradientType Get_Secondary_Gradient(void) const
void Set_Fog_Func(FogFuncType x)
DepthMaskType Get_Depth_Mask(void) const
PriGradientType Get_Primary_Gradient(void) const
void Set_Post_Detail_Color_Func(DetailColorFuncType x)
SrcBlendFuncType Get_Src_Blend_Func(void) const
void Set_Dst_Blend_Func(DstBlendFuncType x)
DstBlendFuncType Get_Dst_Blend_Func(void) const
void Set_Alpha_Test(AlphaTestType x)
AlphaTestType Get_Alpha_Test(void) const
void Set_Color_Mask(ColorMaskType x)
void Set_Secondary_Gradient(SecGradientType x)
static void Convert_Quaternion(const W3dQuaternionStruct &q, Quaternion *set)
static void Convert_Vector(const W3dVectorStruct &v, Vector3 *set)
static void Convert_Color(const W3dRGBStruct &rgb, Vector3 *set)
static void Convert_Shader(const W3dShaderStruct &shader, ShaderClass *set)