mirror of https://github.com/zeldaret/tp.git
64 lines
1.9 KiB
C++
64 lines
1.9 KiB
C++
#ifndef J3DMATERIALATTACH_H
|
|
#define J3DMATERIALATTACH_H
|
|
|
|
#include "JSystem/JUtility/JUTAssert.h"
|
|
#include "dolphin/types.h"
|
|
|
|
class J3DMaterial;
|
|
class J3DTexture;
|
|
class J3DAnmColor;
|
|
class J3DAnmTexPattern;
|
|
class J3DAnmTextureSRTKey;
|
|
class J3DAnmTevRegKey;
|
|
class JUTNameTab;
|
|
|
|
/**
|
|
* @ingroup jsystem-j3d
|
|
*
|
|
*/
|
|
class J3DMaterialTable {
|
|
public:
|
|
/* 8032F5A8 */ void clear();
|
|
/* 8032F5D0 */ J3DMaterialTable();
|
|
/* 8032F64C */ int removeMatColorAnimator(J3DAnmColor*);
|
|
/* 8032F6F8 */ int removeTexNoAnimator(J3DAnmTexPattern*);
|
|
/* 8032F7B4 */ int removeTexMtxAnimator(J3DAnmTextureSRTKey*);
|
|
/* 8032F880 */ int removeTevRegAnimator(J3DAnmTevRegKey*);
|
|
/* 8032F9C0 */ int createTexMtxForAnimator(J3DAnmTextureSRTKey*);
|
|
/* 8032FAF4 */ int entryMatColorAnimator(J3DAnmColor*);
|
|
/* 8032FBC8 */ int entryTexNoAnimator(J3DAnmTexPattern*);
|
|
/* 8032FCC4 */ int entryTexMtxAnimator(J3DAnmTextureSRTKey*);
|
|
/* 8032FE70 */ int entryTevRegAnimator(J3DAnmTevRegKey*);
|
|
|
|
/* 8032F604 */ virtual ~J3DMaterialTable();
|
|
|
|
J3DMaterial* getMaterialNodePointer(u16 idx) const {
|
|
J3D_ASSERT(92, idx < mMaterialNum, "Error : range over.");
|
|
return mMaterialNodePointer[idx];
|
|
}
|
|
|
|
J3DTexture* getTexture() const { return mTexture; }
|
|
JUTNameTab* getTextureName() const { return mTextureName; }
|
|
|
|
JUTNameTab* getMaterialName() const { return mMaterialName; }
|
|
|
|
u16 getMaterialNum() const { return mMaterialNum; }
|
|
bool isLocked() const { return field_0x1c == 1; }
|
|
|
|
private:
|
|
friend class J3DModelLoader;
|
|
friend class J3DModelLoader_v26;
|
|
friend class J3DModelLoader_v21;
|
|
|
|
/* 0x04 */ u16 mMaterialNum;
|
|
/* 0x06 */ u16 mUniqueMatNum;
|
|
/* 0x08 */ J3DMaterial** mMaterialNodePointer;
|
|
/* 0x0C */ JUTNameTab* mMaterialName;
|
|
/* 0x10 */ J3DMaterial* field_0x10;
|
|
/* 0x14 */ J3DTexture* mTexture;
|
|
/* 0x18 */ JUTNameTab* mTextureName;
|
|
/* 0x1C */ u16 field_0x1c;
|
|
}; // Size: 0x20
|
|
|
|
#endif /* J3DMATERIALATTACH_H */
|