This commit is contained in:
David Williams
2011-02-07 23:47:48 +00:00
parent 42db69e013
commit 4da1f6149a
3 changed files with 17 additions and 49 deletions

View File

@ -120,7 +120,7 @@ namespace PolyVox
public:
///Constructor
Volume(uint16_t uWidth, uint16_t uHeight, uint16_t uDepth, uint16_t uBlockSideLength = 32);
Volume(uint16_t uWidth, uint16_t uHeight, uint16_t uDepth, uint16_t uBlockSideLength = 64);
///Destructor
~Volume();
@ -152,7 +152,7 @@ namespace PolyVox
///Sets the voxel at a 3D vector position
bool setVoxelAt(const Vector3DUint16& v3dPos, VoxelType tValue);
///Resises the volume to the specified dimensions
///Resizes the volume to the specified dimensions
void resize(uint16_t uWidth, uint16_t uHeight, uint16_t uDepth, uint16_t uBlockSideLength = 32);
public:
@ -160,8 +160,7 @@ namespace PolyVox
Block<VoxelType> m_pBorderBlock;
std::vector< Block<VoxelType> > m_pBlocks;
//mutable Block<VoxelType>* m_pUncompressedBlock;
mutable std::set<Block<VoxelType>*> m_pUncompressedBlocks;
mutable std::vector<Block<VoxelType>*> m_pUncompressedBlocks;
uint32_t m_uNoOfBlocksInVolume;