New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
CullViewFrustum.h
Go to the documentation of this file.
1#pragma once
2
3#include <container/seadSafeArray.h>
4#include <math/seadVector.h>
5
6#include <nw/g3d/g3d_ShapeObj.h>
7
8namespace sead {
9
10class Camera;
12
13}
14
16{
17 struct Plane
18 {
21 , distance(0.0f)
22 {
23 }
24
27 };
28 static_assert(sizeof(Plane) == 0x10);
29
30public:
31 // Address: 0x024D78A4
33
34 nw::g3d::ViewVolume& getViewVolume() { return mViewVolume; }
35 const nw::g3d::ViewVolume& getViewVolume() const { return mViewVolume; }
36
37 // Address: 0x024D7910
38 void update(const sead::Camera& camera, const sead::PerspectiveProjection& projection);
39
40 // Address: 0x024D7D8C
41 bool testIntersectionSphere(const sead::Vector3f& pos, f32 radius) const; // I think
42 // Address: 0x024D7DDC
43 bool testIntersectionAABB(const sead::Vector3f& min, const sead::Vector3f& max) const;
44
45private:
48};
49static_assert(sizeof(CullViewFrustum) == 0xC0);
Definition CullViewFrustum.h:16
nw::g3d::ViewVolume mViewVolume
Definition CullViewFrustum.h:47
const nw::g3d::ViewVolume & getViewVolume() const
Definition CullViewFrustum.h:35
sead::UnsafeArray< Plane, 4 > mPlane
Definition CullViewFrustum.h:46
bool testIntersectionSphere(const sead::Vector3f &pos, f32 radius) const
nw::g3d::ViewVolume & getViewVolume()
Definition CullViewFrustum.h:34
bool testIntersectionAABB(const sead::Vector3f &min, const sead::Vector3f &max) const
void update(const sead::Camera &camera, const sead::PerspectiveProjection &projection)
Definition CullViewFrustum.h:18
Plane()
Definition CullViewFrustum.h:19
f32 distance
Definition CullViewFrustum.h:26
sead::Vector3f normal
Definition CullViewFrustum.h:25