1#ifndef _DOLPHIN_GD_PIXEL_H
2#define _DOLPHIN_GD_PIXEL_H
4#ifdef __REVOLUTION_SDK__
14#define BP_FOG_UNK0(a, id) \
20#define BP_FOG_UNK1(b_m, id) \
26#define BP_FOG_UNK2(b_expn, id) \
28 (u32)(b_expn) << 0 | \
32#define BP_FOG_UNK3(c, proj, fsel, id) \
40#define BP_FOG_COLOR(r, g, b, id) \
48#define BP_BLEND_MODE(enable, enable_logic, enable_dither, enable_color_update, enable_alpha_update, dst_factor, src_factor, blend_sub, logic_op, id) \
50 (u32)(enable) << 0 | \
51 (u32)(enable_logic) << 1 | \
52 (u32)(enable_dither) << 2 | \
53 (u32)(enable_color_update) << 3 | \
54 (u32)(enable_alpha_update) << 4 | \
55 (u32)(dst_factor) << 5 | \
56 (u32)(src_factor) << 8 | \
57 (u32)(blend_sub) << 11 | \
58 (u32)(logic_op) << 12 | \
62#define BP_Z_MODE(enable_compare, compare_fn, enable_update, id) \
64 (u32)(enable_compare) << 0 | \
65 (u32)(compare_fn) << 1 | \
66 (u32)(enable_update) << 4 | \
70#define BP_DST_ALPHA(alpha, enable, id) \
73 (u32)(enable) << 8 | \
77#define BP_TOKEN(token, id) \
87 u8 color_update_enable,
88 u8 alpha_update_enable,
static GXColor color
Definition d_a_obj_crope.cpp:39
void GDSetFog(GXFogType type, f32 startz, f32 endz, f32 nearz, f32 farz, GXColor color)
Definition GDPixel.c:4
void GDSetBlendMode(GXBlendMode type, GXBlendFactor src_factor, GXBlendFactor dst_factor, GXLogicOp logic_op)
Definition GDPixel.c:73
void GDSetDstAlpha(u8 enable, u8 alpha)
Definition GDPixel.c:111
void GDSetZMode(u8 compare_enable, GXCompare func, u8 update_enable)
Definition GDPixel.c:107
void GDSetDrawSync(u16 token)
Definition GDPixel.c:115
enum _GXBlendMode GXBlendMode
enum _GXFogType GXFogType
enum _GXCompare GXCompare
enum _GXLogicOp GXLogicOp
enum _GXBlendFactor GXBlendFactor
float f32
Definition types.h:25
unsigned short int u16
Definition types.h:10
unsigned char u8
Definition types.h:8
void GDSetBlendModeEtc(GXBlendMode type, GXBlendFactor src_factor, GXBlendFactor dst_factor, GXLogicOp logic_op, u8 color_update_enable, u8 alpha_update_enable, u8 dither_enable)
Definition GDPixel.c:89