metaforce/Runtime/Graphics/CPVSVisSet.hpp

29 lines
720 B
C++
Raw Normal View History

2018-10-06 20:42:33 -07:00
#pragma once
2016-07-27 16:06:57 -07:00
#include "Runtime/RetroTypes.hpp"
#include <zeus/CVector3f.hpp>
2016-07-27 16:06:57 -07:00
2021-04-10 01:42:06 -07:00
namespace metaforce {
2017-02-19 01:27:01 -08:00
class CPVSVisOctree;
2018-12-07 21:30:43 -08:00
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;
2016-07-27 16:06:57 -07:00
public:
2018-12-07 21:30:43 -08:00
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&);
2022-02-27 13:17:44 -08:00
void SetState(EPVSVisSetState state) { x0_state = state; }
2016-07-27 16:06:57 -07:00
};
2021-04-10 01:42:06 -07:00
} // namespace metaforce