G_CM3D_F_INF

This commit is contained in:
LagoLunatic
2025-05-21 16:46:21 -04:00
parent ee2e164fa2
commit 21cd7a2f67
55 changed files with 147 additions and 142 deletions
+1 -3
View File
@@ -2,11 +2,9 @@
#define C_BG_S_H
#include "SSystem/SComponent/c_bg_s_poly_info.h"
#include "SSystem/SComponent/c_m3d.h"
#include "dolphin/types.h"
#define C_BG_MIN_HEIGHT (-1e+9f)
#define C_BG_MAX_HEIGHT (1e+9f)
class fopAc_ac_c;
class cBgS_ShdwDraw;
class cBgS_LinChk;
+5
View File
@@ -19,6 +19,11 @@ class cXyz;
struct Vec;
extern const f32 G_CM3D_F_ABS_MIN;
#if VERSION == VERSION_DEMO
extern const f32 G_CM3D_F_INF;
#else
#define G_CM3D_F_INF 1e+9f
#endif
extern const u32 BPCP_OUTCODE0;
extern const u32 BPCP_OUTCODE1;
+3 -4
View File
@@ -1,10 +1,9 @@
#ifndef C_M3D_G_AAB_H
#define C_M3D_G_AAB_H
#include "SSystem/SComponent/c_bg_s.h"
#include "SSystem/SComponent/c_xyz.h"
#include "SSystem/SComponent/c_m3d.h"
#include "SSystem/SComponent/c_m3d_g_lin.h"
#include "SSystem/SComponent/c_xyz.h"
#include "global.h"
// Axis aligned bounding box
@@ -62,8 +61,8 @@ public:
mMax.x = -1000000000.0f;
}
void ClearForMinMaxY() {
mMin.y = C_BG_MAX_HEIGHT;
mMax.y = C_BG_MIN_HEIGHT;
mMin.y = G_CM3D_F_INF;
mMax.y = -G_CM3D_F_INF;
}
void SetMinMaxY(f32 y) {
if (mMin.y > y) {