13 const uint32_t
RBITS(5);
14 const uint32_t
SBITS(5);
30 inline int32_t
GETREG(
const int32_t x)
61 inline const std::vector<Block *> &
GetBlocks(
unsigned int index) {
return blocks[index]; }
79 if (cells.size() == 0) {
110 void DrawOccupancy(
void)
const;
111 void DrawVoxels(
unsigned int layer)
const;
int32_t GETSREG(const int32_t x)
std::vector< Block * > blocks[2]
The Stage library uses its own namespace.
const uint32_t SRBITS(RBITS+SBITS)
int32_t GETREG(const int32_t x)
const int32_t REGIONMASK(~((~0x00u)<< SRBITS))
std::vector< Cell > cells
void AddBlock(Block *b, unsigned int index)
SuperRegion * superregion
const int32_t REGIONSIZE(REGIONWIDTH *REGIONWIDTH)
void RemoveBlock(Block *b, unsigned int index)
Region * GetRegion(int32_t x, int32_t y)
const int32_t CELLMASK(~((~0x00u)<< RBITS))
const int32_t REGIONWIDTH(1<< RBITS)
Cell * GetCell(int32_t x, int32_t y)
const int32_t SUPERREGIONSIZE(SUPERREGIONWIDTH *SUPERREGIONWIDTH)
const std::vector< Block * > & GetBlocks(unsigned int index)
int32_t GETCELL(const int32_t x)
const point_int_t & GetOrigin() const
const int32_t SUPERREGIONWIDTH(1<< SBITS)