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