Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
GDPixel.h
Go to the documentation of this file.
1#ifndef _DOLPHIN_GD_PIXEL_H
2#define _DOLPHIN_GD_PIXEL_H
3
4#ifdef __REVOLUTION_SDK__
6#else
7#include <dolphin/gx/GXEnum.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#define BP_FOG_UNK0(a, id) \
15 ( \
16 (u32)(a) << 0 | \
17 (u32)(id) << 24 \
18 )
19
20#define BP_FOG_UNK1(b_m, id) \
21 ( \
22 (u32)(b_m) << 0 | \
23 (u32)(id) << 24 \
24 )
25
26#define BP_FOG_UNK2(b_expn, id) \
27 ( \
28 (u32)(b_expn) << 0 | \
29 (u32)(id) << 24 \
30 )
31
32#define BP_FOG_UNK3(c, proj, fsel, id) \
33 ( \
34 (u32)(c) << 0 | \
35 (u32)(proj) << 20 | \
36 (u32)(fsel) << 21 | \
37 (u32)(id) << 24 \
38 )
39
40#define BP_FOG_COLOR(r, g, b, id) \
41 ( \
42 (u32)(b) << 0 | \
43 (u32)(g) << 8 | \
44 (u32)(r) << 16 | \
45 (u32)(id) << 24 \
46 )
47
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) \
49 ( \
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 | \
59 (u32)(id) << 24 \
60 )
61
62#define BP_Z_MODE(enable_compare, compare_fn, enable_update, id) \
63 ( \
64 (u32)(enable_compare) << 0 | \
65 (u32)(compare_fn) << 1 | \
66 (u32)(enable_update) << 4 | \
67 (u32)(id) << 24 \
68 )
69
70#define BP_DST_ALPHA(alpha, enable, id) \
71 ( \
72 (u32)(alpha) << 0 | \
73 (u32)(enable) << 8 | \
74 (u32)(id) << 24 \
75 )
76
77#define BP_TOKEN(token, id) \
78 ( \
79 (u32)(token) << 0 | \
80 (u32)(id) << 24 \
81 )
82
83void GDSetFog(GXFogType type, f32 startz, f32 endz, f32 nearz, f32 farz, GXColor color);
84void GDSetBlendMode(GXBlendMode type, GXBlendFactor src_factor, GXBlendFactor dst_factor, GXLogicOp logic_op);
85void GDSetBlendModeEtc(GXBlendMode type, GXBlendFactor src_factor,
86 GXBlendFactor dst_factor, GXLogicOp logic_op,
87 u8 color_update_enable,
88 u8 alpha_update_enable,
89 u8 dither_enable);
90void GDSetZMode(u8 compare_enable, GXCompare func, u8 update_enable);
91void GDSetDstAlpha(u8 enable, u8 alpha);
92void GDSetDrawSync(u16 token);
93
94#ifdef __cplusplus
95}
96#endif
97
98#endif
99#endif
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
Definition GXStruct.h:30