diff options
| author | robojumper <robojumper@gmail.com> | 2025-09-14 17:03:33 +0200 |
|---|---|---|
| committer | robojumper <robojumper@gmail.com> | 2025-09-14 17:09:09 +0200 |
| commit | c05597754e2da9e781af83ed8a85d84514829b3f (patch) | |
| tree | 26d6cb714af0d00ca955c4afb62dceef4e31b6a2 /include/m | |
| parent | 67c9e3346c32ff52c37e21ec5804a2fd59cf9031 (diff) | |
d_a_knight_leader_bird OK
Diffstat (limited to 'include/m')
| -rw-r--r-- | include/m/m3d/m_anmmdl.h | 4 | ||||
| -rw-r--r-- | include/m/m3d/m_fanm.h | 4 | ||||
| -rw-r--r-- | include/m/m_mtx.h | 24 |
3 files changed, 32 insertions, 0 deletions
diff --git a/include/m/m3d/m_anmmdl.h b/include/m/m3d/m_anmmdl.h index 09180be0..cb8ec945 100644 --- a/include/m/m3d/m_anmmdl.h +++ b/include/m/m3d/m_anmmdl.h @@ -57,6 +57,10 @@ public: return mAnm; } + void setAnmFile(void *data) { + mAnmFile = nw4r::g3d::ResFile(data); + } + protected: nw4r::g3d::ResFile mMdlFile; nw4r::g3d::ResFile mAnmFile; diff --git a/include/m/m3d/m_fanm.h b/include/m/m3d/m_fanm.h index 49c89c0d..fd02f880 100644 --- a/include/m/m3d/m_fanm.h +++ b/include/m/m3d/m_fanm.h @@ -33,6 +33,10 @@ public: mPlayState = state; } + playMode_e getPlayMode() const { + return (playMode_e)mPlayState; + } + inline f32 getEndFrame() { return mEndFrame; } diff --git a/include/m/m_mtx.h b/include/m/m_mtx.h index 95830252..effe67e6 100644 --- a/include/m/m_mtx.h +++ b/include/m/m_mtx.h @@ -110,6 +110,30 @@ public: *this += m; } + void concat(const mMtx_c &rhs) { + MTXConcat(*this, rhs, *this); + } + + void scaleS(const mVec3_c &v) { + MTXScale(*this, v.x, v.y, v.z); + } + + void scaleS(f32 x, f32 y, f32 z) { + MTXScale(*this, x, y, z); + } + + void scaleM(const mVec3_c &v) { + mMtx_c m; + MTXScale(m, v.x, v.y, v.z); + *this += m; + } + + void scaleM(f32 x, f32 y, f32 z) { + mMtx_c m; + MTXScale(m, x, y, z); + *this += m; + } + void multVec(const mVec3_c &in, mVec3_c &out) const { MTXMultVec(*this, in, out); } |
