summaryrefslogtreecommitdiff
path: root/include/SSystem/SComponent
diff options
context:
space:
mode:
authorJcw87 <Jcw87@users.noreply.github.com>2023-08-13 21:08:32 -0700
committerGitHub <noreply@github.com>2023-08-14 07:08:32 +0300
commita997bb00bc2c8b08b260ef619a09885855dc4a3f (patch)
tree9d055d1fbb3a790047a87869189cbca9b2e7e488 /include/SSystem/SComponent
parent9ae61771ec058c8e2a67ac08054e0e1e1ef6ce8b (diff)
d_drawlist (#1881)
Diffstat (limited to 'include/SSystem/SComponent')
-rw-r--r--include/SSystem/SComponent/c_bg_s_shdw_draw.h2
-rw-r--r--include/SSystem/SComponent/c_m3d_g_aab.h4
-rw-r--r--include/SSystem/SComponent/c_m3d_g_pla.h2
3 files changed, 5 insertions, 3 deletions
diff --git a/include/SSystem/SComponent/c_bg_s_shdw_draw.h b/include/SSystem/SComponent/c_bg_s_shdw_draw.h
index b6938b9368..6a4fe439e2 100644
--- a/include/SSystem/SComponent/c_bg_s_shdw_draw.h
+++ b/include/SSystem/SComponent/c_bg_s_shdw_draw.h
@@ -18,6 +18,8 @@ public:
void Set(cXyz&, cXyz&);
void SetCallback(cBgS_ShdwDraw_Callback);
+ cM3dGAab* GetBndP() { return &mM3dGAab; }
+
private:
/* 0x14 */ cM3dGAab mM3dGAab;
/* 0x30 */ cBgS_ShdwDraw_Callback mCallbackFun;
diff --git a/include/SSystem/SComponent/c_m3d_g_aab.h b/include/SSystem/SComponent/c_m3d_g_aab.h
index d268ceb5d6..f7658e1e4e 100644
--- a/include/SSystem/SComponent/c_m3d_g_aab.h
+++ b/include/SSystem/SComponent/c_m3d_g_aab.h
@@ -25,8 +25,8 @@ public:
void SetMax(const cXyz&);
void CalcCenter(cXyz*) const;
void PlusR(f32);
- const cXyz& getMaxP(void) const { return mMax; }
- const cXyz& getMinP(void) const { return mMin; }
+ const cXyz* GetMaxP(void) const { return &mMax; }
+ const cXyz* GetMinP(void) const { return &mMin; }
const f32 GetMaxX(void) const { return mMax.x; }
const f32 GetMaxY(void) const { return mMax.y; }
const f32 GetMaxZ(void) const { return mMax.z; }
diff --git a/include/SSystem/SComponent/c_m3d_g_pla.h b/include/SSystem/SComponent/c_m3d_g_pla.h
index 17b1e033ca..d6aa2fe51a 100644
--- a/include/SSystem/SComponent/c_m3d_g_pla.h
+++ b/include/SSystem/SComponent/c_m3d_g_pla.h
@@ -26,7 +26,7 @@ public:
f32 getPlaneFunc(const Vec* pPoint) const { return mD + PSVECDotProduct(&mNormal, pPoint); }
const cXyz& GetNP() const { return mNormal; }
- const cXyz& i_GetNP() const { return mNormal; }
+ const cXyz* i_GetNP() const { return &mNormal; }
f32 GetD() const { return mD; }
void SetupFrom3Vtx(const Vec* v1, const Vec* v2, const Vec* v3) {
cM3d_CalcPla(v1, v2, v3, &mNormal, &mD);