summaryrefslogtreecommitdiff
path: root/include/m
diff options
context:
space:
mode:
authorelijah-thomas774 <elijahthomas774@gmail.com>2025-05-26 22:12:25 -0400
committerelijah-thomas774 <elijahthomas774@gmail.com>2025-05-26 22:12:25 -0400
commit00a4d0a1665af090e9829ee246cdfce27c39c657 (patch)
tree1c2ead4822a670153a22c22122c0c7817322baf4 /include/m
parent01839e716fb4c7ac9afd4fb3d5c05ed1c6516db7 (diff)
intial progress
Diffstat (limited to 'include/m')
-rw-r--r--include/m/m3d/m_anmchr.h1
-rw-r--r--include/m/m3d/m_mdl.h4
-rw-r--r--include/m/m_fader.h7
-rw-r--r--include/m/m_vec.h2
4 files changed, 13 insertions, 1 deletions
diff --git a/include/m/m3d/m_anmchr.h b/include/m/m3d/m_anmchr.h
index 2ff01dd7..02bef1ca 100644
--- a/include/m/m3d/m_anmchr.h
+++ b/include/m/m3d/m_anmchr.h
@@ -4,6 +4,7 @@
#include "common.h"
#include "m/m3d/m_bmdl.h"
#include "m/m3d/m_fanm.h"
+#include "nw4r/g3d/g3d_anmchr.h"
#include "nw4r/g3d/res/g3d_resanmchr.h"
namespace m3d {
diff --git a/include/m/m3d/m_mdl.h b/include/m/m3d/m_mdl.h
index a0833038..90ec1ea2 100644
--- a/include/m/m3d/m_mdl.h
+++ b/include/m/m3d/m_mdl.h
@@ -1,6 +1,7 @@
#ifndef M3D_M_MDL_H
#define M3D_M_MDL_H
+#include "common.h"
#include "m/m3d/m_banm.h"
#include "m/m3d/m_calc_ratio.h"
#include "m/m3d/m_smdl.h"
@@ -59,6 +60,9 @@ public:
virtual ~mdl_c();
bool create(nw4r::g3d::ResMdl, mAllocator_c *, u32, int, u32 *);
+ bool create(nw4r::g3d::ResMdl mdl, mAllocator_c *alloc, u32 flag, int num) {
+ return create(mdl, alloc, flag, num, nullptr);
+ }
bool create(nw4r::g3d::ResMdl, mdlCallback_c *cb, mAllocator_c *, u32, int, u32 *);
virtual void remove() override;
diff --git a/include/m/m_fader.h b/include/m/m_fader.h
index 2d8c1189..afa508d7 100644
--- a/include/m/m_fader.h
+++ b/include/m/m_fader.h
@@ -28,9 +28,16 @@ public:
mpFader->setStatus(status);
}
+ void fadeIn() {
+ mpFader->fadeIn();
+ }
bool calc() {
return mpFader->calc();
}
+ void setFrame(u16 frame) {
+ mpFader->setFrame(frame);
+ }
+
protected:
mFaderBase_c *mpFader;
};
diff --git a/include/m/m_vec.h b/include/m/m_vec.h
index 0fb52aea..0a8cf706 100644
--- a/include/m/m_vec.h
+++ b/include/m/m_vec.h
@@ -216,7 +216,7 @@ public:
return x != v.x || y != v.y || z != v.z;
}
- void normalize();
+ f32 normalize();
bool normalizeRS();
static mVec3_c createProjectionXZ(const mAng3_c &ang, f32 scalar);