Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_demo.h
Go to the documentation of this file.
1#ifndef D_D_DEMO_H
2#define D_D_DEMO_H
3
10#include "f_op/f_op_actor_mng.h"
11
12class J3DModel;
13class dDemo_actor_c;
14class dDemo_camera_c;
15class dDemo_ambient_c;
16class dDemo_light_c;
17class dDemo_fog_c;
18class fopAc_ac_c;
20
22public:
23 /* 80038F54 */ dDemo_object_c();
24 /* 80038F70 */ ~dDemo_object_c();
25 /* 80038FC0 */ JStage::TObject* appendActor(fopAc_ac_c*);
26 /* 80039088 */ dDemo_actor_c* getActor(u8);
27 /* 800390AC */ JStage::TObject* createCamera();
28 /* 80039128 */ dDemo_camera_c* getActiveCamera();
29 /* 8003913C */ JStage::TObject* createAmbient();
30 /* 800391B8 */ JStage::TObject* appendLight();
31 /* 80039258 */ JStage::TObject* createFog();
32 /* 800392D4 */ void remove();
33
34 /* 0x00 */ u8 mActorNum;
35 /* 0x01 */ u8 mLightNum;
36 /* 0x04 */ dDemo_actor_c* mpActors[32];
39 /* 0x8C */ dDemo_light_c* mpLights[8];
40 /* 0xAC */ dDemo_fog_c* mpFog;
41};
42
43// TODO: made up, figure out what this is
45 /* 0x0 */ u8 field_0x0[0x4 - 0x0];
46 /* 0x4 */ s8 field_0x4;
47 /* 0x5 */ u8 field_0x5[0x6 - 0x5];
48 /* 0x6 */ s8 field_0x6;
49 /* 0x7 */ s8 field_0x7;
50 /* 0x8 */ u8 field_0x8[0xB - 0x8];
51 /* 0xB */ s8 field_0xb;
52 /* 0xC */ u8 field_0xc[0xF - 0xC];
53 /* 0xF */ s8 field_0xf;
54};
55
57public:
60
61 /* 0x0 */ u32 field_0x0;
63};
64
66public:
67 enum Enable_e {
68 ENABLE_TRANS_e = (1 << 1),
69 ENABLE_SCALE_e = (1 << 2),
70 ENABLE_ROTATE_e = (1 << 3),
71 ENABLE_SHAPE_e = (1 << 4),
72 ENABLE_ANM_e = (1 << 5),
75 ENABLE_TEX_ANM = (1 << 8),
77 };
78
79 /* 80038020 */ dDemo_actor_c();
80 /* 80038128 */ fopAc_ac_c* getActor();
81 /* 8003815C */ void setActor(fopAc_ac_c*);
82 /* 8003819C */ f32 getPrm_Morf();
83 /* 80038338 */ int getDemoIDData(int*, int*, int*, u16*, u8*);
84
85 /* 80038098 */ virtual ~dDemo_actor_c();
86 /* 800387EC */ virtual void JSGSetData(u32, void const*, u32);
87 /* 8003A05C */ virtual s32 JSGFindNodeID(char const* param_0) const {
88 JUT_ASSERT(mModel != 0);
90 }
91 /* 8003A088 */ virtual bool JSGGetNodeTransformation(u32 param_0, Mtx param_1) const {
92 JUT_ASSERT(mModel != 0);
94 return true;
95 }
96 /* 8003A0D8 */ virtual void JSGGetTranslation(Vec* o_trans) const {
97 *o_trans = mTrans;
98 }
99 /* 80038920 */ virtual void JSGSetTranslation(Vec const&);
100 /* 8003A0F4 */ virtual void JSGGetScaling(Vec* o_scale) const {
101 *o_scale = mScale;
102 }
103 /* 80038980 */ virtual void JSGSetScaling(Vec const&);
104 /* 8003A110 */ virtual void JSGGetRotation(Vec* param_0) const {
105 param_0->x = mRotate.x * 0.005493164f;
106 param_0->y = mRotate.y * 0.005493164f;
107 param_0->z = mRotate.z * 0.005493164f;
108 }
109 /* 800389A8 */ virtual void JSGSetRotation(Vec const&);
110 /* 80038A0C */ virtual void JSGSetShape(u32);
111 /* 80038A20 */ virtual void JSGSetAnimation(u32);
112 /* 80038A40 */ virtual void JSGSetAnimationFrame(f32);
113 /* 8003A0C8 */ virtual f32 JSGGetAnimationFrameMax() const {
114 return mAnmFrameMax;
115 }
116 /* 80038A54 */ virtual void JSGSetAnimationTransition(f32);
117 /* 80038A68 */ virtual void JSGSetTextureAnimation(u32);
118 /* 80038A7C */ virtual void JSGSetTextureAnimationFrame(f32);
119 /* 8003A0D0 */ virtual f32 JSGGetTextureAnimationFrameMax() const {
120 return mTexAnmFrameMax;
121 }
122
126 cXyz& getTrans() { return mTrans; }
127 cXyz& getScale() { return mScale; }
128 csXyz& getRatate() { return mRotate; }
129 u32 getAnmId() { return mAnmId; }
131 void setOldAnmId(u32 id) { mOldAnmId = id; }
134 dDemo_prm_c* getPrm() { return &mPrm; }
135
136private:
137 /* 0x04 */ u16 mFlags;
138 /* 0x08 */ cXyz mTrans;
139 /* 0x14 */ cXyz mScale;
140 /* 0x20 */ csXyz mRotate;
141 /* 0x28 */ u32 mShape;
142 /* 0x2C */ u32 mAnmId;
143 /* 0x30 */ f32 mAnmFrame;
144 /* 0x34 */ f32 mAnmTransition;
145 /* 0x38 */ f32 mAnmFrameMax;
146 /* 0x3C */ u32 mTexAnm;
147 /* 0x40 */ f32 mTexAnmFrame;
149 /* 0x48 */ J3DModel* mModel;
150 /* 0x4C */ dDemo_prm_c mPrm;
151 /* 0x54 */ u32 field_0x54;
153 /* 0x5C */ u32 mOldAnmId;
154 /* 0x60 */ u32 mBtpId;
155 /* 0x64 */ u32 mBtkId;
156 /* 0x68 */ u32 mBrkId;
157};
158
160public:
162
163 /* 80039AAC */ virtual ~dDemo_system_c();
164 /* 80039528 */ virtual int JSGFindObject(JStage::TObject**, char const*,
165 JStage::TEObject) const;
166
168
169private:
171};
172
181
183public:
192
194 mFlags = 0;
195 }
196
197 /* 80039468 */ virtual ~dDemo_light_c();
198 /* 80038E20 */ virtual void JSGSetLightType(JStage::TELight);
199 /* 80038E34 */ virtual void JSGSetPosition(Vec const&);
200 /* 80038E5C */ virtual void JSGSetColor(GXColor);
201 /* 80038E8C */ virtual void JSGSetDistanceAttenuation(f32, f32, GXDistAttnFn);
202 /* 80038EA8 */ virtual void JSGSetAngleAttenuation(f32, GXSpotFn);
203 /* 80038EC0 */ virtual void JSGSetDirection(Vec const&);
204
205 void onEnable(u8 flag) { mFlags |= flag; }
206
207private:
208 /* 0x04 */ u8 mFlags;
211 /* 0x10 */ GXSpotFn mSpotFn;
212 /* 0x14 */ cXyz mPosition;
213 /* 0x20 */ GXColor mColor;
214 /* 0x24 */ f32 field_0x24;
215 /* 0x28 */ f32 field_0x28;
216 /* 0x2C */ f32 field_0x2c;
217 /* 0x30 */ cXyz mDirection;
218};
219
220class dDemo_fog_c : public JStage::TFog {
221public:
222 enum Enable_e {
223 ENABLE_FOG_FN_e = (1 << 0),
225 ENABLE_END_Z_e = (1 << 2),
226 ENABLE_COLOR_e = (1 << 3),
227 };
228
230 mFlags = 0;
231 }
232
233 /* 80039408 */ virtual ~dDemo_fog_c();
234 /* 80038EE8 */ virtual void JSGSetFogFunction(GXFogType);
235 /* 80038EFC */ virtual void JSGSetStartZ(f32);
236 /* 80038F10 */ virtual void JSGSetEndZ(f32);
237 /* 80038F24 */ virtual void JSGSetColor(GXColor);
238
239 void onEnable(u8 flag) { mFlags |= flag; }
240
241private:
242 /* 0x04 */ u8 mFlags;
243 /* 0x05 */ u8 mFogType;
244 /* 0x08 */ f32 mStartZ;
245 /* 0x0C */ f32 mEndZ;
246 /* 0x10 */ GXColor mColor;
247};
248
250public:
261
263 mFlags = 0;
264 }
265
266 /* 80039FFC */ virtual ~dDemo_camera_c();
267 /* 80038AC4 */ virtual f32 JSGGetProjectionNear() const;
268 /* 80038AF8 */ virtual void JSGSetProjectionNear(f32);
269 /* 80038B0C */ virtual f32 JSGGetProjectionFar() const;
270 /* 80038B40 */ virtual void JSGSetProjectionFar(f32);
271 /* 80038B54 */ virtual f32 JSGGetProjectionFovy() const;
272 /* 80038B88 */ virtual void JSGSetProjectionFovy(f32);
273 /* 80038B9C */ virtual f32 JSGGetProjectionAspect() const;
274 /* 80038BD0 */ virtual void JSGSetProjectionAspect(f32);
275 /* 80038BE4 */ virtual void JSGGetViewPosition(Vec*) const;
276 /* 80038C44 */ virtual void JSGSetViewPosition(Vec const&);
277 /* 80038C6C */ virtual void JSGGetViewUpVector(Vec*) const;
278 /* 80038CD0 */ virtual void JSGSetViewUpVector(Vec const&);
279 /* 80038CF8 */ virtual void JSGGetViewTargetPosition(Vec*) const;
280 /* 80038D5C */ virtual void JSGSetViewTargetPosition(Vec const&);
281 /* 80038D84 */ virtual f32 JSGGetViewRoll() const;
282 /* 80038DDC */ virtual void JSGSetViewRoll(f32);
283
284 void onEnable(u8 flag) { mFlags |= flag; }
285 bool checkEnable(u8 flag) { return mFlags & flag; }
286
288 cXyz& getTrans() { return mViewPos; }
289 cXyz& getUp() { return mViewUpVector; }
290 f32 getFovy() { return mProjFovy; }
291 f32 getRoll() { return mViewRoll; }
292
293private:
294 /* 0x04 */ u8 mFlags;
295 /* 0x08 */ f32 mProjNear;
296 /* 0x0C */ f32 mProjFar;
297 /* 0x10 */ f32 mProjFovy;
298 /* 0x14 */ f32 mProjAspect;
299 /* 0x18 */ cXyz mViewPos;
300 /* 0x24 */ cXyz mViewUpVector;
302 /* 0x3C */ f32 mViewRoll;
303};
304
306public:
307 enum Enable_e {
308 ENABLE_COLOR_e = (1 << 0),
309 };
310
312 mFlags = 0;
313 }
314
315 /* 800394C8 */ virtual ~dDemo_ambient_c();
316 /* 80038DF0 */ virtual void JSGSetColor(GXColor);
317
318 void onEnable(u8 flag) { mFlags |= flag; }
319
320private:
321 /* 0x04 */ u8 mFlags;
322 /* 0x05 */ GXColor mColor;
323};
324
325namespace {
326class jstudio_tCreateObject_message : public JStudio::TCreateObject {
327public:
328 jstudio_tCreateObject_message() {}
329
332};
333
334class jstudio_tAdaptor_message : public JStudio::TAdaptor_message {
335public:
336 typedef JStudio::TObject_message ObjectType;
337
338 jstudio_tAdaptor_message() {}
339
341 virtual void adaptor_do_MESSAGE(JStudio::data::TEOperationData, const void*, u32);
342};
343
344}; // namespace
345
346class dDemo_c {
347public:
348 /* 80039678 */ static void create();
349 /* 80039910 */ static void remove();
350 /* 80039B6C */ static int start(u8 const*, cXyz*, f32);
351 /* 80039CF8 */ static void end();
352 /* 80039D4C */ static void branch();
353 /* 80039DA4 */ static int update();
354 /* 80039EDC */ static void setBranchType(u16);
355 /* 80039EEC */ static void setBranchId(u16, s16);
356 /* 80039F04 */ static void reset();
357
359 static u32 getFrameNoMsg() { return m_frameNoMsg; }
360 static s32 getMode() { return m_mode; }
361 static u32 getFrame() { return m_frame; }
363 static bool isStatus(u32 status) { return m_status & status; }
364 static void onStatus(u32 status) { m_status |= status; }
365 static void offStatus(u32 status) { m_status &= ~status; }
366 static void setBranchData(const u8* p_data) { m_branchData = p_data; }
367 static s16 getBranchId() { return m_branchId; }
369
371 JUT_ASSERT(m_object != 0);
372 return m_object->getActiveCamera();
373 }
374
381 static jstudio_tCreateObject_message* m_message;
385 static const u8* m_data;
386 static int m_frame;
390 static s32 m_mode;
391 static u32 m_status;
393 static const u8* m_branchData;
394};
395
396#endif /* D_D_DEMO_H */
enum _GXSpotFn GXSpotFn
enum _GXDistAttnFn GXDistAttnFn
enum _GXFogType GXFogType
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JPAEmitter.h:94
Definition JPAEmitterManager.h:22
Definition jstudio-control.h:42
Definition jstudio-object.h:104
Definition stb.h:125
Definition stb-data-parse.h:82
s32 getIndex(char const *) const
Definition JUTNameTab.cpp:29
Definition d_demo.h:65
f32 mTexAnmFrame
Definition d_demo.h:147
dDemo_prm_c * getPrm()
Definition d_demo.h:134
fopAc_ac_c * getActor()
Definition d_demo.cpp:100
cXyz mScale
Definition d_demo.h:139
virtual void JSGGetRotation(Vec *param_0) const
Definition d_demo.h:104
f32 mAnmFrame
Definition d_demo.h:143
f32 getAnmFrame()
Definition d_demo.h:133
virtual ~dDemo_actor_c()
Definition d_demo.cpp:86
void setOldAnmId(u32 id)
Definition d_demo.h:131
virtual void JSGSetTextureAnimationFrame(f32)
Definition d_demo.cpp:471
virtual void JSGSetShape(u32)
Definition d_demo.cpp:436
virtual void JSGSetTranslation(Vec const &)
Definition d_demo.cpp:409
f32 getPrm_Morf()
Definition d_demo.cpp:119
fpc_ProcID mActorId
Definition d_demo.h:152
csXyz mRotate
Definition d_demo.h:140
virtual void JSGGetScaling(Vec *o_scale) const
Definition d_demo.h:100
u32 mBtpId
Definition d_demo.h:154
virtual void JSGGetTranslation(Vec *o_trans) const
Definition d_demo.h:96
Enable_e
Definition d_demo.h:67
@ ENABLE_ANM_e
Definition d_demo.h:72
@ ENABLE_ANM_FRAME_e
Definition d_demo.h:73
@ ENABLE_TEX_ANM_FRAME_e
Definition d_demo.h:76
@ ENABLE_TEX_ANM
Definition d_demo.h:75
@ ENABLE_SCALE_e
Definition d_demo.h:69
@ ENABLE_ANM_TRANSITION_e
Definition d_demo.h:74
@ ENABLE_SHAPE_e
Definition d_demo.h:71
@ ENABLE_ROTATE_e
Definition d_demo.h:70
@ ENABLE_TRANS_e
Definition d_demo.h:68
cXyz & getTrans()
Definition d_demo.h:126
virtual bool JSGGetNodeTransformation(u32 param_0, Mtx param_1) const
Definition d_demo.h:91
f32 mAnmFrameMax
Definition d_demo.h:145
u32 field_0x54
Definition d_demo.h:151
virtual void JSGSetData(u32, void const *, u32)
Definition d_demo.cpp:354
csXyz & getRatate()
Definition d_demo.h:128
J3DModel * mModel
Definition d_demo.h:149
void setActor(fopAc_ac_c *)
Definition d_demo.cpp:105
cXyz mTrans
Definition d_demo.h:138
int getDemoIDData(int *, int *, int *, u16 *, u8 *)
Definition d_demo.cpp:218
virtual void JSGSetAnimationFrame(f32)
Definition d_demo.cpp:450
dDemo_actor_c()
Definition d_demo.cpp:75
u32 mBtkId
Definition d_demo.h:155
f32 mAnmTransition
Definition d_demo.h:144
void setModel(J3DModel *p_model)
Definition d_demo.h:123
u32 mAnmId
Definition d_demo.h:142
virtual f32 JSGGetAnimationFrameMax() const
Definition d_demo.h:113
u32 mBrkId
Definition d_demo.h:156
u32 mOldAnmId
Definition d_demo.h:153
void setAnmFrameMax(f32 max)
Definition d_demo.h:132
u32 mShape
Definition d_demo.h:141
u32 getOldAnmId()
Definition d_demo.h:130
virtual s32 JSGFindNodeID(char const *param_0) const
Definition d_demo.h:87
u32 mTexAnm
Definition d_demo.h:146
cXyz & getScale()
Definition d_demo.h:127
virtual void JSGSetTextureAnimation(u32)
Definition d_demo.cpp:464
void onEnable(u16 flag)
Definition d_demo.h:125
dDemo_prm_c mPrm
Definition d_demo.h:150
u32 getAnmId()
Definition d_demo.h:129
virtual void JSGSetAnimationTransition(f32)
Definition d_demo.cpp:457
virtual void JSGSetRotation(Vec const &)
Definition d_demo.cpp:428
virtual void JSGSetAnimation(u32)
Definition d_demo.cpp:443
virtual f32 JSGGetTextureAnimationFrameMax() const
Definition d_demo.h:119
f32 mTexAnmFrameMax
Definition d_demo.h:148
u16 mFlags
Definition d_demo.h:137
u8 checkEnable(u16 flag)
Definition d_demo.h:124
virtual void JSGSetScaling(Vec const &)
Definition d_demo.cpp:422
Definition d_demo.h:305
void onEnable(u8 flag)
Definition d_demo.h:318
GXColor mColor
Definition d_demo.h:322
u8 mFlags
Definition d_demo.h:321
Enable_e
Definition d_demo.h:307
@ ENABLE_COLOR_e
Definition d_demo.h:308
virtual void JSGSetColor(GXColor)
Definition d_demo.cpp:639
dDemo_ambient_c()
Definition d_demo.h:311
virtual ~dDemo_ambient_c()
Definition d_demo.cpp:871
Definition d_demo.h:346
static JStudio_JStage::TCreateObject * m_stage
Definition d_demo.h:378
static u16 m_branchType
Definition d_demo.h:392
static const u8 * m_data
Definition d_demo.h:385
static jmessage_tControl * getMesgControl()
Definition d_demo.h:368
static dDemo_actor_c * getActor(u8 param_0)
Definition d_demo.h:358
static u32 m_status
Definition d_demo.h:391
static dDemo_particle_c * m_particle
Definition d_demo.h:380
static u32 m_frameNoMsg
Definition d_demo.h:389
static JStudio::TFactory * m_factory
Definition d_demo.h:382
static JStudio_JAudio2::TCreateObject * m_audio
Definition d_demo.h:379
static dDemo_object_c * m_object
Definition d_demo.h:384
static f32 m_rotationY
Definition d_demo.h:388
static JStudio::TControl * m_control
Definition d_demo.h:377
static const u8 * m_branchData
Definition d_demo.h:393
static void create()
Definition d_demo.cpp:925
static s32 getMode()
Definition d_demo.h:360
static void setBranchId(u16, s16)
Definition d_demo.cpp:1141
static s16 m_branchId
Definition d_demo.h:375
static JStudio::stb::TControl * getControl()
Definition d_demo.h:362
static jstudio_tCreateObject_message * m_message
Definition d_demo.h:381
static dDemo_camera_c * getCamera()
Definition d_demo.h:370
static int m_frame
Definition d_demo.h:386
static void offStatus(u32 status)
Definition d_demo.h:365
static void remove()
Definition d_demo.cpp:968
static void branch()
Definition d_demo.cpp:1072
static u32 getFrameNoMsg()
Definition d_demo.h:359
static void setBranchData(const u8 *p_data)
Definition d_demo.h:366
static void setBranchType(u16)
Definition d_demo.cpp:1135
static bool isStatus(u32 status)
Definition d_demo.h:363
static void onStatus(u32 status)
Definition d_demo.h:364
static void reset()
Definition d_demo.cpp:1150
static int update()
Definition d_demo.cpp:1084
static void end()
Definition d_demo.cpp:1062
static s16 getBranchId()
Definition d_demo.h:367
static jmessage_tControl * m_mesgControl
Definition d_demo.h:383
static cXyz * m_translation
Definition d_demo.h:387
static u32 getFrame()
Definition d_demo.h:361
static dDemo_system_c * m_system
Definition d_demo.h:376
static s32 m_mode
Definition d_demo.h:390
Definition d_demo.h:249
cXyz & getTarget()
Definition d_demo.h:287
void onEnable(u8 flag)
Definition d_demo.h:284
Enable_e
Definition d_demo.h:251
@ ENABLE_VIEW_ROLL_e
Definition d_demo.h:259
@ ENABLE_VIEW_UP_VEC_e
Definition d_demo.h:257
@ ENABLE_VIEW_POS_e
Definition d_demo.h:256
@ ENABLE_PROJ_ASPECT_e
Definition d_demo.h:255
@ ENABLE_PROJ_FOVY_e
Definition d_demo.h:254
@ ENABLE_VIEW_TARG_POS_e
Definition d_demo.h:258
@ ENABLE_PROJ_FAR_e
Definition d_demo.h:253
@ ENABLE_PROJ_NEAR_e
Definition d_demo.h:252
cXyz & getUp()
Definition d_demo.h:289
f32 getRoll()
Definition d_demo.h:291
f32 mProjNear
Definition d_demo.h:295
cXyz mViewUpVector
Definition d_demo.h:300
virtual f32 JSGGetViewRoll() const
Definition d_demo.cpp:621
u8 mFlags
Definition d_demo.h:294
f32 mViewRoll
Definition d_demo.h:302
virtual f32 JSGGetProjectionFar() const
Definition d_demo.cpp:504
virtual void JSGGetViewUpVector(Vec *) const
Definition d_demo.cpp:579
f32 getFovy()
Definition d_demo.h:290
dDemo_camera_c()
Definition d_demo.h:262
virtual void JSGSetProjectionFar(f32)
Definition d_demo.cpp:515
virtual void JSGSetViewPosition(Vec const &)
Definition d_demo.cpp:572
f32 mProjFovy
Definition d_demo.h:297
virtual void JSGGetViewTargetPosition(Vec *) const
Definition d_demo.cpp:600
virtual void JSGSetViewUpVector(Vec const &)
Definition d_demo.cpp:593
virtual ~dDemo_camera_c()
Definition d_demo.cpp:1168
virtual f32 JSGGetProjectionAspect() const
Definition d_demo.cpp:539
virtual void JSGSetProjectionFovy(f32)
Definition d_demo.cpp:532
virtual void JSGSetProjectionNear(f32)
Definition d_demo.cpp:498
cXyz mViewPos
Definition d_demo.h:299
f32 mProjFar
Definition d_demo.h:296
bool checkEnable(u8 flag)
Definition d_demo.h:285
virtual void JSGGetViewPosition(Vec *) const
Definition d_demo.cpp:558
virtual f32 JSGGetProjectionFovy() const
Definition d_demo.cpp:521
virtual void JSGSetViewTargetPosition(Vec const &)
Definition d_demo.cpp:614
virtual f32 JSGGetProjectionNear() const
Definition d_demo.cpp:487
cXyz mViewTargetVector
Definition d_demo.h:301
cXyz & getTrans()
Definition d_demo.h:288
f32 mProjAspect
Definition d_demo.h:298
virtual void JSGSetViewRoll(f32)
Definition d_demo.cpp:633
virtual void JSGSetProjectionAspect(f32)
Definition d_demo.cpp:551
Definition d_demo.h:220
f32 mStartZ
Definition d_demo.h:244
virtual void JSGSetStartZ(f32)
Definition d_demo.cpp:694
GXColor mColor
Definition d_demo.h:246
virtual void JSGSetEndZ(f32)
Definition d_demo.cpp:700
dDemo_fog_c()
Definition d_demo.h:229
u8 mFlags
Definition d_demo.h:242
f32 mEndZ
Definition d_demo.h:245
void onEnable(u8 flag)
Definition d_demo.h:239
virtual ~dDemo_fog_c()
Definition d_demo.cpp:865
u8 mFogType
Definition d_demo.h:243
Enable_e
Definition d_demo.h:222
@ ENABLE_START_Z_e
Definition d_demo.h:224
@ ENABLE_END_Z_e
Definition d_demo.h:225
@ ENABLE_COLOR_e
Definition d_demo.h:226
@ ENABLE_FOG_FN_e
Definition d_demo.h:223
virtual void JSGSetColor(GXColor)
Definition d_demo.cpp:706
virtual void JSGSetFogFunction(GXFogType)
Definition d_demo.cpp:688
Definition d_demo.h:182
cXyz mPosition
Definition d_demo.h:212
virtual void JSGSetPosition(Vec const &)
Definition d_demo.cpp:652
f32 field_0x2c
Definition d_demo.h:216
f32 field_0x28
Definition d_demo.h:215
f32 field_0x24
Definition d_demo.h:214
virtual void JSGSetLightType(JStage::TELight)
Definition d_demo.cpp:646
virtual void JSGSetDirection(Vec const &)
Definition d_demo.cpp:681
JStage::TELight mLightType
Definition d_demo.h:209
virtual void JSGSetAngleAttenuation(f32, GXSpotFn)
Definition d_demo.cpp:674
virtual ~dDemo_light_c()
Definition d_demo.cpp:868
u8 mFlags
Definition d_demo.h:208
GXColor mColor
Definition d_demo.h:213
virtual void JSGSetColor(GXColor)
Definition d_demo.cpp:658
GXDistAttnFn mDistAttenFn
Definition d_demo.h:210
void onEnable(u8 flag)
Definition d_demo.h:205
virtual void JSGSetDistanceAttenuation(f32, f32, GXDistAttnFn)
Definition d_demo.cpp:665
GXSpotFn mSpotFn
Definition d_demo.h:211
Enable_e
Definition d_demo.h:184
@ ENABLE_ANGLE_ATTEN_e
Definition d_demo.h:189
@ ENABLE_DIST_ATTEN_e
Definition d_demo.h:188
@ ENABLE_LIGHT_TYPE_e
Definition d_demo.h:185
@ ENABLE_COLOR_e
Definition d_demo.h:187
@ ENABLE_POSITION_e
Definition d_demo.h:186
@ ENABLE_DIRECTION_e
Definition d_demo.h:190
cXyz mDirection
Definition d_demo.h:217
dDemo_light_c()
Definition d_demo.h:193
Definition d_demo.h:21
JStage::TObject * createFog()
Definition d_demo.cpp:827
dDemo_camera_c * getActiveCamera()
Definition d_demo.cpp:783
JStage::TObject * createCamera()
Definition d_demo.cpp:770
dDemo_actor_c * getActor(u8)
Definition d_demo.cpp:761
dDemo_camera_c * mpCamera
Definition d_demo.h:37
JStage::TObject * appendActor(fopAc_ac_c *)
Definition d_demo.cpp:727
dDemo_light_c * mpLights[8]
Definition d_demo.h:39
u8 mLightNum
Definition d_demo.h:35
JStage::TObject * createAmbient()
Definition d_demo.cpp:793
dDemo_ambient_c * mpAmbient
Definition d_demo.h:38
u8 mActorNum
Definition d_demo.h:34
~dDemo_object_c()
Definition d_demo.cpp:721
dDemo_object_c()
Definition d_demo.cpp:712
JStage::TObject * appendLight()
Definition d_demo.cpp:805
dDemo_fog_c * mpFog
Definition d_demo.h:40
void remove()
Definition d_demo.cpp:839
dDemo_actor_c * mpActors[32]
Definition d_demo.h:36
Definition d_demo.h:173
dDemo_particle_c(JPAEmitterManager *p_emitMgr, const JStage::TSystem *p_system)
Definition d_demo.h:175
virtual JPABaseEmitter * emitter_create(u32)
Definition d_demo.cpp:1158
virtual ~dDemo_particle_c()
Definition d_demo.cpp:1165
Definition d_demo.h:56
dDemo_prm_data * getData()
Definition d_demo.h:59
dDemo_prm_data * mData
Definition d_demo.h:62
u32 field_0x0
Definition d_demo.h:61
dDemo_prm_c()
Definition d_demo.h:58
Definition d_demo.h:159
dDemo_object_c * mpObject
Definition d_demo.h:170
virtual int JSGFindObject(JStage::TObject **, char const *, JStage::TEObject) const
Definition d_demo.cpp:875
virtual ~dDemo_system_c()
Definition d_demo.cpp:1018
dDemo_system_c()
Definition d_demo.h:161
void setObject(dDemo_object_c *i_object)
Definition d_demo.h:167
static SECTION_RODATA u8 const id[8]
Definition d_a_npc_bans.cpp:1309
static volatile BOOL flag
Definition dspproc.cpp:20
static u8 max[12]
Definition f_op_actor_mng.cpp:1785
unsigned int fpc_ProcID
Definition f_pc_base.h:10
static s32 status
Definition fstload.c:6
void cMtx_copy(const Mtx src, Mtx dst)
Definition m_Do_mtx.h:95
f32 Mtx[3][4]
Definition mtx.h:15
TEObject
Definition JSGSystem.h:7
TELight
Definition JSGLight.h:8
TEOperationData
Definition jstudio-object.h:12
Definition control.h:9
@ start
Definition strtoul.c:8
JUTNameTab * getJointName() const
Definition J3DModelData.h:52
Definition d_a_ep.cpp:155
J3DModelData * getModelData()
Definition J3DModel.h:77
MtxP getAnmMtx(int jointNo)
Definition J3DModel.h:101
Definition JSGActor.h:12
Definition JSGAmbientLight.h:13
Definition JSGCamera.h:24
Definition JSGFog.h:13
Definition JSGLight.h:19
Definition JSGObject.h:11
Definition JSGSystem.h:21
Definition jstudio-object.h:327
Definition jstudio-control.h:11
TCreateObject()
Definition jstudio-control.h:12
virtual bool create(TObject **, JStudio::stb::data::TParse_TBlock_object const &)=0
Definition jstudio-control.h:29
Definition jstudio-object.h:332
Definition control.h:10
Definition control.h:10
Definition control.h:16
s16 x
Definition vec.h:19
s16 z
Definition vec.h:19
s16 y
Definition vec.h:19
Definition d_a_hozelda.cpp:18
Definition d_a_ep.cpp:68
Definition d_a_hozelda.cpp:20
Definition d_a_ep.cpp:66
Definition d_demo.h:44
u8 field_0xc[0xF - 0xC]
Definition d_demo.h:52
s8 field_0xb
Definition d_demo.h:51
u8 field_0x0[0x4 - 0x0]
Definition d_demo.h:45
s8 field_0x7
Definition d_demo.h:49
s8 field_0x4
Definition d_demo.h:46
s8 field_0x6
Definition d_demo.h:48
u8 field_0x5[0x6 - 0x5]
Definition d_demo.h:47
s8 field_0xf
Definition d_demo.h:53
u8 field_0x8[0xB - 0x8]
Definition d_demo.h:50
Definition d_a_ep.cpp:19
Definition control.h:88
signed char s8
Definition types.h:4
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