metaforce/Runtime/Graphics/CPVSVisSet.hpp

27 lines
648 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-07-27 23:06:57 +00:00
#include "Runtime/RetroTypes.hpp"
#include <zeus/CVector3f.hpp>
2016-07-27 23:06:57 +00:00
2018-12-08 05:30:43 +00:00
namespace urde {
2017-02-19 09:27:01 +00:00
class CPVSVisOctree;
2018-12-08 05:30:43 +00: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 23:06:57 +00:00
public:
2018-12-08 05:30:43 +00: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&);
2016-07-27 23:06:57 +00:00
};
2018-12-08 05:30:43 +00:00
} // namespace urde