diff options
| author | hatal175 <hatal175@users.noreply.github.com> | 2024-02-06 07:04:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-06 07:04:35 +0200 |
| commit | c19d9b02be5d894f91cd45884eed67152dffffa4 (patch) | |
| tree | eaa14d73085ab7adfdd657ba8d1b2d2e23e149f2 /include/JSystem/J3DGraphAnimator/J3DAnimation.h | |
| parent | e98d9c845c3476b3060a4bada25ced6a736835de (diff) | |
J3D work (#2064)
Diffstat (limited to 'include/JSystem/J3DGraphAnimator/J3DAnimation.h')
| -rw-r--r-- | include/JSystem/J3DGraphAnimator/J3DAnimation.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/include/JSystem/J3DGraphAnimator/J3DAnimation.h b/include/JSystem/J3DGraphAnimator/J3DAnimation.h index be944dd686..565eb289dd 100644 --- a/include/JSystem/J3DGraphAnimator/J3DAnimation.h +++ b/include/JSystem/J3DGraphAnimator/J3DAnimation.h @@ -89,7 +89,7 @@ struct J3DAnmCRegKeyTable { /* 0x06 */ J3DAnmKeyTableBase mGTable; /* 0x0C */ J3DAnmKeyTableBase mBTable; /* 0x12 */ J3DAnmKeyTableBase mATable; - /* 0x18 */ u8 _18; + /* 0x18 */ u8 mColorId; u8 padding[3]; }; // Size = 0x1C @@ -98,7 +98,7 @@ struct J3DAnmKRegKeyTable { /* 0x06 */ J3DAnmKeyTableBase mGTable; /* 0x0C */ J3DAnmKeyTableBase mBTable; /* 0x12 */ J3DAnmKeyTableBase mATable; - /* 0x18 */ u8 _18; + /* 0x18 */ u8 mColorId; u8 padding[3]; }; // Size = 0x1C @@ -444,6 +444,11 @@ public: u16 getUpdateMaterialID(u16 idx) const { return mUpdateMaterialID[idx]; } u16 getUpdateMaterialNum() const { return mTrackNum / 3; } + int getUpdateTexMtxID(u16 idx) { return mUpdateTexMtxID[idx]; } + bool isValidUpdateMaterialID(u16 idx) const { return mUpdateMaterialID[idx] != 0xffff; } + u32 getTexMtxCalcType() const { return mTexMtxCalcType; } + Vec* getSRTCenter(u16 idx) { return &mSRTCenter[idx]; } + /* 0x0C */ int mDecShift; /* 0x10 */ J3DAnmTransformKeyTable* mAnmTable; /* 0x14 */ u16 mTrackNum; @@ -512,6 +517,12 @@ public: u16 getCRegUpdateMaterialID(u16 idx) const { return mCRegUpdateMaterialID[idx]; } u16 getKRegUpdateMaterialID(u16 idx) const { return mKRegUpdateMaterialID[idx]; } + const J3DAnmCRegKeyTable* getAnmCRegKeyTable() const { return mAnmCRegKeyTable; } + const J3DAnmKRegKeyTable* getAnmKRegKeyTable() const { return mAnmKRegKeyTable; } + + bool isValidCRegUpdateMaterialID(u16 idx) { return mCRegUpdateMaterialID[idx] != 0xffff; } + bool isValidKRegUpdateMaterialID(u16 idx) { return mKRegUpdateMaterialID[idx] != 0xffff; } + /* 0x0C */ u16 mCRegUpdateMaterialNum; /* 0x0E */ u16 mKRegUpdateMaterialNum; /* 0x10 */ u16 mCRegDataCountR; |
