Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
GXStruct.h
Go to the documentation of this file.
1#ifndef GXSTRUCT_H
2#define GXSTRUCT_H
3
4#include "global.h"
5#include "dolphin/gx/GXEnum.h"
6#include "dolphin/vi.h"
7
8typedef struct _GXColor {
9 /* 0x0 */ u8 r;
10 /* 0x1 */ u8 g;
11 /* 0x2 */ u8 b;
12 /* 0x3 */ u8 a;
14
15typedef struct _GXColorS10 {
16 /* 0x0 */ s16 r;
17 /* 0x2 */ s16 g;
18 /* 0x4 */ s16 b;
19 /* 0x6 */ s16 a;
21
22typedef struct _GXRenderModeObj {
23 /* 0x00 */ VITVMode vi_tv_mode;
24 /* 0x04 */ u16 fb_width;
25 /* 0x06 */ u16 efb_height;
26 /* 0x08 */ u16 xfb_height;
27 /* 0x0A */ u16 vi_x_origin;
28 /* 0x0C */ u16 vi_y_origin;
29 /* 0x0E */ u16 vi_width;
30 /* 0x10 */ u16 vi_height;
31 /* 0x14 */ VIXFBMode xfb_mode;
32 /* 0x18 */ u8 field_rendering;
33 /* 0x19 */ u8 antialiasing;
34 /* 0x1A */ u8 sample_pattern[12][2];
35 /* 0x32 */ u8 vfilter[7];
37
39
40typedef struct _GXTexObj {
41 /* 0x00 */ u32 texture_filter;
42 /* 0x04 */ u32 texture_lod;
43 /* 0x08 */ u32 texture_size;
44 /* 0x0C */ u32 texture_address;
45 /* 0x10 */ u32 user_data;
46 /* 0x14 */ u32 texture_format;
47 /* 0x18 */ u32 tlut_name;
50 /* 0x1F */ u8 texture_flags;
52
53typedef struct _GXTlutObj {
54 /* 0x0 */ u32 format;
55 /* 0x4 */ u32 address;
56 /* 0x8 */ u16 numEntries;
58
59typedef struct _GXLightObj {
60 /* 0x00 */ u8 field_0x0[0xc];
61 /* 0x0C */ GXColor color;
62 /* 0x10 */ f32 a0;
63 /* 0x14 */ f32 a1;
64 /* 0x18 */ f32 a2;
65 /* 0x1C */ f32 k0;
66 /* 0x20 */ f32 k1;
67 /* 0x24 */ f32 k2;
68 /* 0x28 */ f32 posX;
69 /* 0x2C */ f32 posY;
70 /* 0x30 */ f32 posZ;
71 /* 0x34 */ f32 dirX;
72 /* 0x38 */ f32 dirY;
73 /* 0x3C */ f32 dirZ;
75
76typedef struct _GXFogAdjTable {
77 /* 0x0 */ u16 fogVals[10];
79
80typedef struct _GXFifoObj {
81 /* 0x00 */ void* base;
82 /* 0x04 */ void* end;
83 /* 0x08 */ u32 size;
84 /* 0x0C */ u32 high_wtrmark;
85 /* 0x10 */ u32 low_wtrmark;
86 /* 0x14 */ void* read_ptr;
87 /* 0x18 */ void* write_ptr;
88 /* 0x1C */ s32 rw_dst;
89 /* 0x20 */ u8 fifo_wrap;
90 /* 0x21 */ u8 cpu_fifo_ready;
91 /* 0x22 */ u8 gp_fifo_ready;
92 /* 0x23 */ u8 field_0x23[93];
93} GXFifoObj; // Size: 0x80
94
95typedef struct _GXTexRegion {
96 u32 unk0; // _00
97 u32 unk4; // _04
98 u32 unk8; // _08
99 u8 unkC; // _0C
100 u8 unkD; // _0D
101} GXTexRegion; // Size: 0x10
102
103typedef struct _GXTlutRegion {
104 /* 0x00 */ u32 unk0;
105 /* 0x04 */ GXTlutObj tlutObj;
106} GXTlutRegion; // Size: 0x10
107
108#endif /* GXSTRUCT_H */
struct _GXColor GXColor
struct _GXTlutObj GXTlutObj
struct _GXRenderModeObj GXRenderModeObj
struct _GXTexObj GXTexObj
STATIC_ASSERT(sizeof(GXRenderModeObj)==60)
struct _GXFogAdjTable GXFogAdjTable
struct _GXColorS10 GXColorS10
struct _GXFifoObj GXFifoObj
struct _GXLightObj GXLightObj
struct _GXTlutRegion GXTlutRegion
struct _GXTexRegion GXTexRegion
Definition d_a_obj_sekizoa.cpp:191
s16 g
Definition GXStruct.h:17
s16 a
Definition GXStruct.h:19
s16 r
Definition GXStruct.h:16
s16 b
Definition GXStruct.h:18
Definition d_a_ep.cpp:68
u8 g
Definition GXStruct.h:10
u8 b
Definition GXStruct.h:11
u8 a
Definition GXStruct.h:12
u8 r
Definition GXStruct.h:9
Definition GXStruct.h:80
void * base
Definition GXStruct.h:81
void * write_ptr
Definition GXStruct.h:87
s32 rw_dst
Definition GXStruct.h:88
u8 gp_fifo_ready
Definition GXStruct.h:91
u8 fifo_wrap
Definition GXStruct.h:89
u32 high_wtrmark
Definition GXStruct.h:84
void * end
Definition GXStruct.h:82
u8 field_0x23[93]
Definition GXStruct.h:92
u32 low_wtrmark
Definition GXStruct.h:85
u8 cpu_fifo_ready
Definition GXStruct.h:90
u32 size
Definition GXStruct.h:83
void * read_ptr
Definition GXStruct.h:86
Definition GXStruct.h:76
u16 fogVals[10]
Definition GXStruct.h:77
Definition GXStruct.h:59
f32 posX
Definition GXStruct.h:68
f32 a0
Definition GXStruct.h:62
f32 a2
Definition GXStruct.h:64
f32 posZ
Definition GXStruct.h:70
GXColor color
Definition GXStruct.h:61
f32 k1
Definition GXStruct.h:66
f32 dirZ
Definition GXStruct.h:73
f32 k0
Definition GXStruct.h:65
f32 posY
Definition GXStruct.h:69
u8 field_0x0[0xc]
Definition GXStruct.h:60
f32 a1
Definition GXStruct.h:63
f32 dirX
Definition GXStruct.h:71
f32 k2
Definition GXStruct.h:67
f32 dirY
Definition GXStruct.h:72
Definition GXStruct.h:22
u16 vi_height
Definition GXStruct.h:30
u16 vi_x_origin
Definition GXStruct.h:27
u8 sample_pattern[12][2]
Definition GXStruct.h:34
u8 vfilter[7]
Definition GXStruct.h:35
u16 vi_width
Definition GXStruct.h:29
u16 xfb_height
Definition GXStruct.h:26
u8 antialiasing
Definition GXStruct.h:33
VIXFBMode xfb_mode
Definition GXStruct.h:31
u8 field_rendering
Definition GXStruct.h:32
u16 vi_y_origin
Definition GXStruct.h:28
VITVMode vi_tv_mode
Definition GXStruct.h:23
u16 efb_height
Definition GXStruct.h:25
u16 fb_width
Definition GXStruct.h:24
Definition d_a_ep.cpp:147
u32 texture_filter
Definition GXStruct.h:41
u8 texture_tile_type
Definition GXStruct.h:49
u32 texture_format
Definition GXStruct.h:46
u32 user_data
Definition GXStruct.h:45
u32 texture_lod
Definition GXStruct.h:42
u32 tlut_name
Definition GXStruct.h:47
u16 texture_time_count
Definition GXStruct.h:48
u32 texture_size
Definition GXStruct.h:43
u8 texture_flags
Definition GXStruct.h:50
u32 texture_address
Definition GXStruct.h:44
Definition GXStruct.h:95
u32 unk0
Definition GXStruct.h:96
u32 unk4
Definition GXStruct.h:97
u32 unk8
Definition GXStruct.h:98
u8 unkD
Definition GXStruct.h:100
u8 unkC
Definition GXStruct.h:99
Definition GXStruct.h:53
u32 address
Definition GXStruct.h:55
u16 numEntries
Definition GXStruct.h:56
u32 format
Definition GXStruct.h:54
Definition GXStruct.h:103
u32 unk0
Definition GXStruct.h:104
GXTlutObj tlutObj
Definition GXStruct.h:105
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8
VITVMode
Definition vi.h:30
VIXFBMode
Definition vi.h:62