Properly implemented Volume::tidyUpMemory().

This commit is contained in:
David Williams
2009-04-15 20:50:41 +00:00
parent df68b1fe7a
commit 8f0ca490df
3 changed files with 44 additions and 21 deletions

View File

@ -28,6 +28,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "PolyVoxImpl/CPlusPlusZeroXSupport.h"
#include <limits>
#include <map>
#include <vector>
@ -56,7 +57,7 @@ namespace PolyVox
void setVoxelAt(uint16_t uXPos, uint16_t uYPos, uint16_t uZPos, VoxelType tValue);
void setVoxelAt(const Vector3DUint16& v3dPos, VoxelType tValue);
void idle(uint32_t uAmount);
void tidyUpMemory(uint32_t uNoOfBlocksToProcess = numeric_limits<uint32_t>::max);
bool isRegionHomogenous(const Region& region);
private:
@ -80,6 +81,8 @@ namespace PolyVox
uint8_t m_uBlockSideLengthPower;
uint16_t m_uBlockSideLength;
uint32_t m_uCurrentBlockForTidying;
};
//Required for the static member