Templatized Block class.

This commit is contained in:
David Williams
2008-04-20 18:44:00 +00:00
parent 35f9996663
commit 7177db44ac
7 changed files with 32 additions and 27 deletions

View File

@ -43,7 +43,7 @@ namespace PolyVox
Volume& operator=(const Volume& rhs);
public:
Block* getBlock(boost::uint16_t index);
Block<boost::uint8_t>* getBlock(boost::uint16_t index);
bool containsPoint(Vector3DFloat pos, float boundary);
bool containsPoint(Vector3DInt32 pos, boost::uint16_t boundary);
@ -55,7 +55,7 @@ namespace PolyVox
void tidy(void);
private:
Block* mBlocks[POLYVOX_NO_OF_BLOCKS_IN_VOLUME];
Block<boost::uint8_t>* mBlocks[POLYVOX_NO_OF_BLOCKS_IN_VOLUME];
};
}