metaforce/Runtime/Graphics/CPVSVisSet.hpp

35 lines
668 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 "RetroTypes.hpp"
2017-02-19 09:27:01 +00:00
#include "zeus/CAABox.hpp"
2016-07-27 23:06:57 +00:00
#include <memory>
namespace urde
{
2017-02-19 09:27:01 +00:00
class CPVSVisOctree;
enum class EPVSVisSetState
{
EndOfTree,
NodeFound,
OutOfBounds
};
2016-07-27 23:06:57 +00:00
class CPVSVisSet
{
2017-02-19 09:27:01 +00:00
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:
2017-02-19 09:27:01 +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
};
}