mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-02 02:30:22 -04:00
9649319ec4
* Reorganize files into libs/{dolphin,JSystem,PowerPC_EABI_Support,revolution,TRK_MINNOW_DOLPHIN}
* Update configure.py and project.py for new libs structure
* Refactor `#include <dolphin/x.h>` -> `<x.h>`
* Remove `__REVOLUTION_SDK__` forwards from dolphin
* Fix dolphin/ references in revolution
* Wrap `#include <dolphin.h>` in `!__REVOLUTION_SDK__`
* Always build TRK against dolphin headers
* Resolve revolution SDK header resolution issues
45 lines
900 B
C++
45 lines
900 B
C++
#ifndef J3DSHAPETABLE_H
|
|
#define J3DSHAPETABLE_H
|
|
|
|
#include "JSystem/JUtility/JUTAssert.h"
|
|
|
|
class J3DVertexData;
|
|
struct J3DDrawMtxData;
|
|
class J3DShape;
|
|
class JUTNameTab;
|
|
|
|
/**
|
|
* @ingroup jsystem-j3d
|
|
*
|
|
*/
|
|
class J3DShapeTable {
|
|
public:
|
|
J3DShapeTable() {
|
|
mShapeNum = 0;
|
|
mShapeNodePointer = NULL;
|
|
mShapeName = NULL;
|
|
}
|
|
|
|
void hide();
|
|
void show();
|
|
void initShapeNodes(J3DDrawMtxData*, J3DVertexData*);
|
|
void sortVcdVatCmd();
|
|
|
|
virtual ~J3DShapeTable() {}
|
|
|
|
u16 getShapeNum() const { return mShapeNum; }
|
|
J3DShape* getShapeNodePointer(u16 idx) const {
|
|
J3D_ASSERT_RANGE(85, idx < mShapeNum);
|
|
return mShapeNodePointer[idx];
|
|
}
|
|
|
|
private:
|
|
friend class J3DModelLoader;
|
|
|
|
/* 0x4 */ u16 mShapeNum;
|
|
/* 0x8 */ J3DShape** mShapeNodePointer;
|
|
/* 0xC */ JUTNameTab* mShapeName;
|
|
}; // Size: 0x10
|
|
|
|
#endif /* J3DSHAPETABLE_H */
|