2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 20:31:21 +00:00
metaforce/Runtime/Graphics/CPVSVisSet.hpp
Lioncash a633b8e8fd General: Normalize RuntimeCommon include paths
Performs the same normalizing done to the RuntimeCommonB target, now all
of the runtime headers have normalized include paths.
2019-09-28 04:14:29 -04:00

27 lines
648 B
C++

#pragma once
#include "Runtime/RetroTypes.hpp"
#include <zeus/CVector3f.hpp>
namespace urde {
class CPVSVisOctree;
enum class EPVSVisSetState { EndOfTree, NodeFound, OutOfBounds };
class CPVSVisSet {
EPVSVisSetState x0_state;
u32 x4_numBits;
u32 x8_numLights;
// bool xc_; Used to be part of auto_ptr
const u8* x10_ptr;
public:
void Reset(EPVSVisSetState state);
EPVSVisSetState GetState() const { return x0_state; }
EPVSVisSetState GetVisible(u32 idx) const;
void SetFromMemory(u32 numBits, u32 numLights, const u8* leafPtr);
void SetTestPoint(const CPVSVisOctree& octree, const zeus::CVector3f&);
};
} // namespace urde