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