Files
tp/include/JSystem/J3DGraphAnimator/J3DMaterialAttach.h
T

63 lines
1.7 KiB
C++
Raw Normal View History

2021-03-28 22:49:05 +02:00
#ifndef J3DMATERIALATTACH_H
#define J3DMATERIALATTACH_H
2025-09-04 07:56:59 -07:00
#include "JSystem/J3DAssert.h"
2021-03-28 22:49:05 +02:00
2023-09-04 16:17:51 -07:00
class J3DMaterial;
class J3DTexture;
class J3DAnmColor;
class J3DAnmTexPattern;
class J3DAnmTextureSRTKey;
class J3DAnmTevRegKey;
2023-05-12 12:10:14 -07:00
class JUTNameTab;
2021-10-11 09:38:53 -07:00
2024-04-12 00:10:30 -06:00
/**
* @ingroup jsystem-j3d
*
*/
2021-10-11 09:38:53 -07:00
class J3DMaterialTable {
public:
2025-11-30 14:23:42 -08:00
void clear();
J3DMaterialTable();
int removeMatColorAnimator(J3DAnmColor*);
int removeTexNoAnimator(J3DAnmTexPattern*);
int removeTexMtxAnimator(J3DAnmTextureSRTKey*);
int removeTevRegAnimator(J3DAnmTevRegKey*);
int createTexMtxForAnimator(J3DAnmTextureSRTKey*);
int entryMatColorAnimator(J3DAnmColor*);
int entryTexNoAnimator(J3DAnmTexPattern*);
int entryTexMtxAnimator(J3DAnmTextureSRTKey*);
int entryTevRegAnimator(J3DAnmTevRegKey*);
2021-10-11 09:38:53 -07:00
2025-11-30 14:23:42 -08:00
virtual ~J3DMaterialTable();
2021-10-11 09:38:53 -07:00
2025-06-20 02:41:43 -04:00
J3DMaterial* getMaterialNodePointer(u16 idx) const {
2025-09-04 07:56:59 -07:00
J3D_ASSERT_RANGE(92, idx < mMaterialNum);
2025-06-20 02:41:43 -04:00
return mMaterialNodePointer[idx];
}
2021-10-11 09:38:53 -07:00
J3DTexture* getTexture() const { return mTexture; }
2022-01-25 12:24:14 -08:00
JUTNameTab* getTextureName() const { return mTextureName; }
2021-10-11 09:38:53 -07:00
2023-01-03 17:43:38 -08:00
JUTNameTab* getMaterialName() const { return mMaterialName; }
2021-10-11 09:38:53 -07:00
u16 getMaterialNum() const { return mMaterialNum; }
bool isLocked() const { return field_0x1c == 1; }
2021-10-11 09:38:53 -07:00
private:
2023-11-08 22:56:00 -05:00
friend class J3DModelLoader;
friend class J3DModelLoader_v26;
friend class J3DModelLoader_v21;
2021-10-11 09:38:53 -07:00
/* 0x04 */ u16 mMaterialNum;
/* 0x06 */ u16 mUniqueMatNum;
/* 0x08 */ J3DMaterial** mMaterialNodePointer;
/* 0x0C */ JUTNameTab* mMaterialName;
2023-11-08 22:56:00 -05:00
/* 0x10 */ J3DMaterial* field_0x10;
2021-10-11 09:38:53 -07:00
/* 0x14 */ J3DTexture* mTexture;
/* 0x18 */ JUTNameTab* mTextureName;
/* 0x1C */ u16 field_0x1c;
}; // Size: 0x20
2021-03-28 22:49:05 +02:00
#endif /* J3DMATERIALATTACH_H */