mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-19 05:22:39 -04:00
G_CM3D_F_INF
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user