Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
J3DShapeFactory.h
Go to the documentation of this file.
1#ifndef J3DSHAPEFACTORY_H
2#define J3DSHAPEFACTORY_H
3
5#include "dolphin/gx/GXAttr.h"
6
7class J3DShape;
8class J3DShapeMtx;
9class J3DShapeDraw;
10struct ResNTAB;
11
17 /* 0x00 */ u8 mShapeMtxType;
18 /* 0x02 */ u16 mMtxGroupNum;
22 /* 0x0C */ f32 mRadius;
23 /* 0x10 */ Vec mMin;
24 /* 0x1C */ Vec mMax;
25};
26
32 /* 0x00 */ u16 mUseMtxIndex;
33 /* 0x02 */ u16 mUseMtxCount;
35};
36
45
51 /* 80337350 */ J3DShapeFactory(J3DShapeBlock const&);
52 /* 80337400 */ J3DShape* create(int, u32, GXVtxDescList*);
53 /* 803375BC */ J3DShapeMtx* newShapeMtx(u32, int, int) const;
54 /* 8033784C */ J3DShapeDraw* newShapeDraw(int, int) const;
55 /* 803378D8 */ void allocVcdVatCmdBuffer(u32);
56 /* 80337944 */ s32 calcSize(int, u32);
57 /* 803379D8 */ s32 calcSizeVcdVatCmdBuffer(u32);
58 /* 803379E8 */ s32 calcSizeShapeMtx(u32, int, int) const;
59
61 /* 0x04 */ u16* mIndexTable;
63 /* 0x0C */ u16* mMtxTable;
64 /* 0x10 */ u8* mDisplayListData;
67 /* 0x1C */ u8* mVcdVatCmdBuffer;
68
70 GXVtxDescList* getVtxDescList(int no) const { return (GXVtxDescList*)((u8*)mVtxDescList + mShapeInitData[mIndexTable[no]].mVtxDescListIndex); }
72 Vec& getMin(int no) const { return mShapeInitData[mIndexTable[no]].mMin; }
73 Vec& getMax(int no) const { return mShapeInitData[mIndexTable[no]].mMax; }
74};
75
76
77#endif /* J3DSHAPEFACTORY_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition J3DShapeDraw.h:10
Definition J3DShapeMtx.h:49
Definition J3DShape.h:82
Definition J3DModelLoader.h:180
Definition J3DShapeFactory.h:41
u32 mDisplayListIndex
Definition J3DShapeFactory.h:43
u32 mDisplayListSize
Definition J3DShapeFactory.h:42
Definition J3DShapeFactory.h:50
u8 * mDisplayListData
Definition J3DShapeFactory.h:64
s32 calcSizeShapeMtx(u32, int, int) const
Definition J3DShapeFactory.cpp:154
Vec & getMin(int no) const
Definition J3DShapeFactory.h:72
J3DShapeDraw * newShapeDraw(int, int) const
Definition J3DShapeFactory.cpp:114
J3DShape * create(int, u32, GXVtxDescList *)
Definition J3DShapeFactory.cpp:26
void allocVcdVatCmdBuffer(u32)
Definition J3DShapeFactory.cpp:124
GXVtxDescList * getVtxDescList(int no) const
Definition J3DShapeFactory.h:70
J3DShapeInitData * mShapeInitData
Definition J3DShapeFactory.h:60
J3DShapeDrawInitData * mDrawInitData
Definition J3DShapeFactory.h:66
J3DShapeMtx * newShapeMtx(u32, int, int) const
Definition J3DShapeFactory.cpp:62
u16 * mMtxTable
Definition J3DShapeFactory.h:63
u8 * mVcdVatCmdBuffer
Definition J3DShapeFactory.h:67
s32 calcSize(int, u32)
Definition J3DShapeFactory.cpp:131
f32 getRadius(int no) const
Definition J3DShapeFactory.h:71
J3DShapeMtxInitData * mMtxInitData
Definition J3DShapeFactory.h:65
s32 calcSizeVcdVatCmdBuffer(u32)
Definition J3DShapeFactory.cpp:149
u16 * mIndexTable
Definition J3DShapeFactory.h:61
GXVtxDescList * mVtxDescList
Definition J3DShapeFactory.h:62
u32 getMtxGroupNum(int no) const
Definition J3DShapeFactory.h:69
Vec & getMax(int no) const
Definition J3DShapeFactory.h:73
Definition J3DShapeFactory.h:16
u16 mVtxDescListIndex
Definition J3DShapeFactory.h:19
u16 mMtxGroupNum
Definition J3DShapeFactory.h:18
u16 mDrawInitDataIndex
Definition J3DShapeFactory.h:21
Vec mMax
Definition J3DShapeFactory.h:24
u16 mMtxInitDataIndex
Definition J3DShapeFactory.h:20
u8 mShapeMtxType
Definition J3DShapeFactory.h:17
Vec mMin
Definition J3DShapeFactory.h:23
f32 mRadius
Definition J3DShapeFactory.h:22
Definition J3DShapeFactory.h:31
u32 mFirstUseMtxIndex
Definition J3DShapeFactory.h:34
u16 mUseMtxCount
Definition J3DShapeFactory.h:33
u16 mUseMtxIndex
Definition J3DShapeFactory.h:32
Definition JUTNameTab.h:10
Definition d_a_hozelda.cpp:18
Definition GXAttr.h:10
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8