1#ifndef _DOLPHIN_GD_PIXEL_H
2#define _DOLPHIN_GD_PIXEL_H
11#define BP_FOG_UNK0(a, id) \
17#define BP_FOG_UNK1(b_m, id) \
23#define BP_FOG_UNK2(b_expn, id) \
25 (u32)(b_expn) << 0 | \
29#define BP_FOG_UNK3(c, proj, fsel, id) \
37#define BP_FOG_COLOR(r, g, b, id) \
45#define BP_BLEND_MODE(enable, enable_logic, enable_dither, enable_color_update, enable_alpha_update, dst_factor, src_factor, blend_sub, logic_op, id) \
47 (u32)(enable) << 0 | \
48 (u32)(enable_logic) << 1 | \
49 (u32)(enable_dither) << 2 | \
50 (u32)(enable_color_update) << 3 | \
51 (u32)(enable_alpha_update) << 4 | \
52 (u32)(dst_factor) << 5 | \
53 (u32)(src_factor) << 8 | \
54 (u32)(blend_sub) << 11 | \
55 (u32)(logic_op) << 12 | \
59#define BP_Z_MODE(enable_compare, compare_fn, enable_update, id) \
61 (u32)(enable_compare) << 0 | \
62 (u32)(compare_fn) << 1 | \
63 (u32)(enable_update) << 4 | \
67#define BP_DST_ALPHA(alpha, enable, id) \
70 (u32)(enable) << 8 | \
74#define BP_TOKEN(token, id) \
84 u8 color_update_enable,
85 u8 alpha_update_enable,
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 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
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
static SECTION_DATA u8 color[4]
Definition d_a_obj_crope.cpp:225
Definition d_menu_dmap_map.cpp:90
float f32
Definition types.h:22
unsigned short int u16
Definition types.h:7
unsigned char u8
Definition types.h:5