Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
J2DMaterialFactory.h
Go to the documentation of this file.
1#ifndef J2DMATERIALFACTORY_H
2#define J2DMATERIALFACTORY_H
3
6
40
41typedef struct _GXColor GXColor;
42typedef struct _GXColorS10 GXColorS10;
43struct J2DAlphaCompInfo;
44struct J2DBlendInfo;
45struct J2DColorChanInfo;
46class J2DMaterial;
47
62
94struct J2DTevStageInfo;
97struct J2DTevOrderInfo;
98struct J2DTexCoordInfo;
99struct J2DTexMtxInfo;
100class JKRArchive;
101
107public:
108 /* 802F2AD0 */ J2DMaterialFactory(J2DMaterialBlock const&);
109 /* 802F2C94 */ u32 countStages(int) const;
111 JKRArchive*) const;
112 /* 802F362C */ JUtility::TColor newMatColor(int, int) const;
113 /* 802F36CC */ u8 newColorChanNum(int) const;
114 /* 802F3704 */ J2DColorChan newColorChan(int, int) const;
115 /* 802F3758 */ u32 newTexGenNum(int) const;
116 /* 802F3790 */ J2DTexCoord newTexCoord(int, int) const;
117 /* 802F3804 */ J2DTexMtx* newTexMtx(int, int) const;
118 /* 802F38E0 */ u8 newCullMode(int) const;
119 /* 802F3920 */ u16 newTexNo(int, int) const;
120 /* 802F3968 */ u16 newFontNo(int) const;
121 /* 802F39A8 */ J2DTevOrder newTevOrder(int, int) const;
122 /* 802F3A1C */ J2DGXColorS10 newTevColor(int, int) const;
123 /* 802F3AB4 */ JUtility::TColor newTevKColor(int, int) const;
124 /* 802F3B54 */ u8 newTevStageNum(int) const;
125 /* 802F3B8C */ J2DTevStage newTevStage(int, int) const;
126 /* 802F3BEC */ J2DTevSwapModeTable newTevSwapModeTable(int, int) const;
127 /* 802F3C88 */ u8 newIndTexStageNum(int) const;
128 /* 802F3CB8 */ J2DIndTexOrder newIndTexOrder(int, int) const;
129 /* 802F3D20 */ J2DIndTexMtx newIndTexMtx(int, int) const;
130 /* 802F3E24 */ J2DIndTevStage newIndTevStage(int, int) const;
131 /* 802F3F78 */ J2DIndTexCoordScale newIndTexCoordScale(int, int) const;
132 /* 802F3FE0 */ J2DAlphaComp newAlphaComp(int) const;
133 /* 802F405C */ J2DBlend newBlend(int) const;
134 /* 802F40D8 */ u8 newDither(int) const;
135
136 u32 getMaterialMode(int idx) const {
137 return field_0x4[field_0x8[idx]].field_0x0;
138 }
139
140 u8 getMaterialAlphaCalc(int idx) const {
141 return field_0x4[field_0x8[idx]].field_0x6;
142 }
143
144private:
145 /* 0x00 */ u16 field_0x0;
146 /* 0x02 */ u16 field_0x2;
148 /* 0x08 */ u16* field_0x8;
150 /* 0x10 */ GXColor* field_0x10;
151 /* 0x14 */ u8* field_0x14;
153 /* 0x1C */ u8* field_0x1c;
156 /* 0x28 */ u16* field_0x28;
157 /* 0x2C */ u16* field_0x2c;
161 /* 0x3C */ GXColor* field_0x3c;
162 /* 0x40 */ u8* field_0x40;
168 /* 0x58 */ u8* field_0x58;
169};
170
171#endif /* J2DMATERIALFACTORY_H */
_GXCullMode
Definition GXEnum.h:16
Definition J2DMatBlock.h:800
Definition J2DTevs.h:228
Definition J2DTevs.h:179
Definition J2DTevs.h:135
Definition J2DTevs.h:92
Definition J2DMaterialFactory.h:106
J2DBlendInfo * field_0x54
Definition J2DMaterialFactory.h:167
J2DTexCoord newTexCoord(int, int) const
Definition J2DMaterialFactory.cpp:236
u8 newTevStageNum(int) const
Definition J2DMaterialFactory.cpp:320
JUtility::TColor newTevKColor(int, int) const
Definition J2DMaterialFactory.cpp:309
J2DTevOrderInfo * field_0x34
Definition J2DMaterialFactory.h:159
J2DTevSwapModeTableInfo * field_0x4c
Definition J2DMaterialFactory.h:165
u8 * field_0x1c
Definition J2DMaterialFactory.h:153
u8 * field_0x14
Definition J2DMaterialFactory.h:151
J2DGXColorS10 newTevColor(int, int) const
Definition J2DMaterialFactory.cpp:296
J2DAlphaComp newAlphaComp(int) const
Definition J2DMaterialFactory.cpp:404
u8 newColorChanNum(int) const
Definition J2DMaterialFactory.cpp:209
J2DMaterial * create(J2DMaterial *, int, u32, J2DResReference *, J2DResReference *, JKRArchive *) const
Definition J2DMaterialFactory.cpp:74
J2DTevStageInfo * field_0x44
Definition J2DMaterialFactory.h:163
J2DIndTexCoordScale newIndTexCoordScale(int, int) const
Definition J2DMaterialFactory.cpp:393
J2DTevSwapModeInfo * field_0x48
Definition J2DMaterialFactory.h:164
u8 newDither(int) const
Definition J2DMaterialFactory.cpp:424
GXColor * field_0x10
Definition J2DMaterialFactory.h:150
J2DTexMtxInfo * field_0x24
Definition J2DMaterialFactory.h:155
J2DTexMtx * newTexMtx(int, int) const
Definition J2DMaterialFactory.cpp:246
u32 countStages(int) const
Definition J2DMaterialFactory.cpp:49
u8 * field_0x58
Definition J2DMaterialFactory.h:168
J2DIndTexOrder newIndTexOrder(int, int) const
Definition J2DMaterialFactory.cpp:359
u16 newTexNo(int, int) const
Definition J2DMaterialFactory.cpp:267
J2DTevStage newTevStage(int, int) const
Definition J2DMaterialFactory.cpp:329
u32 newTexGenNum(int) const
Definition J2DMaterialFactory.cpp:227
_GXColorS10 * field_0x38
Definition J2DMaterialFactory.h:160
u16 newFontNo(int) const
Definition J2DMaterialFactory.cpp:277
J2DTevOrder newTevOrder(int, int) const
Definition J2DMaterialFactory.cpp:286
J2DIndTevStage newIndTevStage(int, int) const
Definition J2DMaterialFactory.cpp:381
J2DBlend newBlend(int) const
Definition J2DMaterialFactory.cpp:414
u16 * field_0x2c
Definition J2DMaterialFactory.h:157
u16 field_0x2
Definition J2DMaterialFactory.h:146
J2DTexCoordInfo * field_0x20
Definition J2DMaterialFactory.h:154
u8 newCullMode(int) const
Definition J2DMaterialFactory.cpp:257
J2DAlphaCompInfo * field_0x50
Definition J2DMaterialFactory.h:166
J2DMaterialInitData * field_0x4
Definition J2DMaterialFactory.h:147
JUtility::TColor newMatColor(int, int) const
Definition J2DMaterialFactory.cpp:198
u16 * field_0x28
Definition J2DMaterialFactory.h:156
u8 getMaterialAlphaCalc(int idx) const
Definition J2DMaterialFactory.h:140
u16 * field_0x8
Definition J2DMaterialFactory.h:148
u32 getMaterialMode(int idx) const
Definition J2DMaterialFactory.h:136
GXColor * field_0x3c
Definition J2DMaterialFactory.h:161
J2DIndTexMtx newIndTexMtx(int, int) const
Definition J2DMaterialFactory.cpp:370
J2DTevSwapModeTable newTevSwapModeTable(int, int) const
Definition J2DMaterialFactory.cpp:339
u8 newIndTexStageNum(int) const
Definition J2DMaterialFactory.cpp:349
J2DColorChan newColorChan(int, int) const
Definition J2DMaterialFactory.cpp:218
J2DColorChanInfo * field_0x18
Definition J2DMaterialFactory.h:152
J2DIndInitData * field_0xc
Definition J2DMaterialFactory.h:149
u8 * field_0x40
Definition J2DMaterialFactory.h:162
u16 field_0x0
Definition J2DMaterialFactory.h:145
_GXCullMode * field_0x30
Definition J2DMaterialFactory.h:158
Definition J2DMaterial.h:11
Definition J2DTevs.h:321
Definition J2DTevs.h:385
Definition J2DTevs.h:536
Definition J2DTevs.h:278
Definition J2DTevs.h:53
Definition JKRArchive.h:57
Definition J2DMatBlock.h:587
Definition J2DMatBlock.h:606
Definition J2DMatBlock.h:632
Definition J2DMatBlock.h:652
Definition J2DMatBlock.h:786
Definition J2DMatBlock.h:19
Definition J2DMaterialFactory.h:52
J2DIndTexCoordScaleInfo field_0x60[4]
Definition J2DMaterialFactory.h:58
J2DIndTevStageInfo field_0x68[4]
Definition J2DMaterialFactory.h:59
u8 field_0x2[2]
Definition J2DMaterialFactory.h:55
u8 field_0x0
Definition J2DMaterialFactory.h:53
J2DIndTexOrderInfo field_0x4[4]
Definition J2DMaterialFactory.h:56
J2DIndTexMtxInfo field_0xc[3]
Definition J2DMaterialFactory.h:57
u8 field_0xac[0x90]
Definition J2DMaterialFactory.h:60
u8 field_0x1
Definition J2DMaterialFactory.h:54
Definition J2DTevs.h:201
Definition J2DTevs.h:160
Definition J2DTevs.h:114
Definition J2DTevs.h:73
Definition J2DMaterialFactory.h:11
u32 field_0x20
Definition J2DMaterialFactory.h:21
u32 field_0x60
Definition J2DMaterialFactory.h:37
u32 field_0x1c
Definition J2DMaterialFactory.h:20
u32 field_0x4c
Definition J2DMaterialFactory.h:32
u16 field_0x8
Definition J2DMaterialFactory.h:14
u16 field_0xa
Definition J2DMaterialFactory.h:15
u32 field_0x3c
Definition J2DMaterialFactory.h:28
u32 field_0x30
Definition J2DMaterialFactory.h:25
u32 field_0x5c
Definition J2DMaterialFactory.h:36
u32 field_0x58
Definition J2DMaterialFactory.h:35
u32 field_0x50
Definition J2DMaterialFactory.h:33
u32 field_0x44
Definition J2DMaterialFactory.h:30
u32 field_0x2c
Definition J2DMaterialFactory.h:24
u32 field_0x64
Definition J2DMaterialFactory.h:38
u32 field_0x14
Definition J2DMaterialFactory.h:18
u32 field_0x54
Definition J2DMaterialFactory.h:34
u32 field_0xc
Definition J2DMaterialFactory.h:16
u32 field_0x18
Definition J2DMaterialFactory.h:19
u32 field_0x48
Definition J2DMaterialFactory.h:31
u32 field_0x10
Definition J2DMaterialFactory.h:17
u32 field_0x34
Definition J2DMaterialFactory.h:26
u32 field_0x24
Definition J2DMaterialFactory.h:22
u32 field_0x40
Definition J2DMaterialFactory.h:29
u32 field_0x0
Definition J2DMaterialFactory.h:12
u32 field_0x38
Definition J2DMaterialFactory.h:27
u32 field_0x28
Definition J2DMaterialFactory.h:23
u32 field_0x4
Definition J2DMaterialFactory.h:13
Definition J2DMaterialFactory.h:67
u8 field_0x5
Definition J2DMaterialFactory.h:73
u16 field_0xe6
Definition J2DMaterialFactory.h:92
u16 field_0x9a[0x10]
Definition J2DMaterialFactory.h:87
u8 field_0x2
Definition J2DMaterialFactory.h:70
u16 field_0x24[0xa]
Definition J2DMaterialFactory.h:79
u8 field_0x1
Definition J2DMaterialFactory.h:69
u16 field_0x8[2]
Definition J2DMaterialFactory.h:76
u16 field_0x72[0x10]
Definition J2DMaterialFactory.h:85
u16 field_0x48
Definition J2DMaterialFactory.h:81
u16 field_0xda[0x4]
Definition J2DMaterialFactory.h:89
u16 field_0x92[0x4]
Definition J2DMaterialFactory.h:86
u16 field_0x14[8]
Definition J2DMaterialFactory.h:78
u8 field_0x52[0x10]
Definition J2DMaterialFactory.h:83
u16 field_0xba[0x10]
Definition J2DMaterialFactory.h:88
u16 field_0xc[4]
Definition J2DMaterialFactory.h:77
u8 field_0x7
Definition J2DMaterialFactory.h:75
u8 field_0x62[0x10]
Definition J2DMaterialFactory.h:84
u16 field_0xe4
Definition J2DMaterialFactory.h:91
u8 field_0x0
Definition J2DMaterialFactory.h:68
u16 field_0xe2
Definition J2DMaterialFactory.h:90
u8 field_0x3
Definition J2DMaterialFactory.h:71
u8 field_0x6
Definition J2DMaterialFactory.h:74
u16 field_0x4a[4]
Definition J2DMaterialFactory.h:82
u8 field_0x4
Definition J2DMaterialFactory.h:72
u16 field_0x38[8]
Definition J2DMaterialFactory.h:80
Definition J2DManage.h:12
Definition J2DTevs.h:301
Definition J2DTevs.h:343
Definition J2DTevs.h:372
Definition J2DTevs.h:518
Definition J2DTevs.h:258
Definition J2DTevs.h:23
Definition TColor.h:12
Definition d_a_obj_sekizoa.cpp:191
Definition d_a_ep.cpp:68
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
unsigned char u8
Definition types.h:8