From 2d4a8ee46a04ad49313f35c9062f8194de36deb2 Mon Sep 17 00:00:00 2001 From: hatal175 Date: Thu, 8 Jan 2026 16:53:40 +0200 Subject: Work on d_debug_camera (#3024) --- include/d/d_bg_s.h | 1 + include/d/d_bg_w_base.h | 7 +++++++ include/d/d_debug_camera.h | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/d/d_bg_s.h b/include/d/d_bg_s.h index 2ce6493260..c0804bd07c 100644 --- a/include/d/d_bg_s.h +++ b/include/d/d_bg_s.h @@ -151,6 +151,7 @@ public: u32 GetMtrlSndId(const cBgS_PolyInfo& param_0) { return dKy_pol_sound_get(¶m_0); } void DebugDrawPoly(dBgW_Base *param_1) {} void DebugDrawPoly(dBgW_Base const& param_1) {} + void DrawPoly(cBgS_PolyInfo const& param_0, GXColor const& param_1); fopAc_ac_c* GetActorPointer(cBgS_PolyInfo const& param_0) const { return cBgS::GetActorPointer(param_0); } bool LineCross(cBgS_LinChk* i_linChk) { #if DEBUG diff --git a/include/d/d_bg_w_base.h b/include/d/d_bg_w_base.h index e593093960..0eb10e977e 100644 --- a/include/d/d_bg_w_base.h +++ b/include/d/d_bg_w_base.h @@ -4,6 +4,7 @@ #include "SSystem/SComponent/c_bg_s_poly_info.h" #include "SSystem/SComponent/c_bg_w.h" #include "SSystem/SComponent/c_m3d_g_pla.h" +#include "dolphin/gx.h" #include "f_pc/f_pc_base.h" class cBgS_GndChk; @@ -104,6 +105,12 @@ public: virtual void CallRideCallBack(fopAc_ac_c*, fopAc_ac_c*); virtual void CallArrowStickCallBack(fopAc_ac_c*, fopAc_ac_c*, cXyz&); + #if DEBUG + virtual void DebugDraw() {} + virtual void DrawPoly(cBgS_PolyInfo const& param_0, GXColor const& param_1) {} + virtual void DebugBox() {} + #endif + PushPull_CallBack GetPushPullCallback() const { return m_pushPull_Callback; } s16 GetDiffShapeAngleY() { return m_diff_ShapeAngleY; } int GetRoomId() { return m_roomId; } diff --git a/include/d/d_debug_camera.h b/include/d/d_debug_camera.h index 854cf0ecfa..600e1beb10 100644 --- a/include/d/d_debug_camera.h +++ b/include/d/d_debug_camera.h @@ -161,7 +161,7 @@ public: public: /* 0x000 */ int field_0x0; /* 0x004 */ int field_0x4; - /* 0x008 */ u8 field_0x8[0x010 - 0x008]; + /* 0x008 */ int field_0x8[2]; /* 0x010 */ cXyz field_0x10[32]; /* 0x190 */ cXyz field_0x190[32]; } /* 0x704 */ field_0x704; -- cgit v1.2.3