Linux fix.
This commit is contained in:
parent
8f0ca490df
commit
03891ad6bb
@ -57,7 +57,7 @@ namespace PolyVox
|
|||||||
void setVoxelAt(uint16_t uXPos, uint16_t uYPos, uint16_t uZPos, VoxelType tValue);
|
void setVoxelAt(uint16_t uXPos, uint16_t uYPos, uint16_t uZPos, VoxelType tValue);
|
||||||
void setVoxelAt(const Vector3DUint16& v3dPos, VoxelType tValue);
|
void setVoxelAt(const Vector3DUint16& v3dPos, VoxelType tValue);
|
||||||
|
|
||||||
void tidyUpMemory(uint32_t uNoOfBlocksToProcess = numeric_limits<uint32_t>::max);
|
void tidyUpMemory(uint32_t uNoOfBlocksToProcess = std::numeric_limits<uint32_t>::max);
|
||||||
bool isRegionHomogenous(const Region& region);
|
bool isRegionHomogenous(const Region& region);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -241,7 +241,7 @@ namespace PolyVox
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Identify and remove any homogeneous blocks which are not actually in use.
|
//Identify and remove any homogeneous blocks which are not actually in use.
|
||||||
std::map<VoxelType, POLYVOX_SHARED_PTR< BlockData<VoxelType> > >::iterator iter = m_pHomogenousBlockData.begin();
|
typename std::map<VoxelType, POLYVOX_SHARED_PTR< BlockData<VoxelType> > >::iterator iter = m_pHomogenousBlockData.begin();
|
||||||
while(iter != m_pHomogenousBlockData.end())
|
while(iter != m_pHomogenousBlockData.end())
|
||||||
{
|
{
|
||||||
if(iter->second.unique())
|
if(iter->second.unique())
|
||||||
@ -282,7 +282,7 @@ namespace PolyVox
|
|||||||
template <typename VoxelType>
|
template <typename VoxelType>
|
||||||
POLYVOX_SHARED_PTR< BlockData<VoxelType> > Volume<VoxelType>::getHomogenousBlockData(VoxelType tHomogenousValue) const
|
POLYVOX_SHARED_PTR< BlockData<VoxelType> > Volume<VoxelType>::getHomogenousBlockData(VoxelType tHomogenousValue) const
|
||||||
{
|
{
|
||||||
std::map<VoxelType, POLYVOX_SHARED_PTR< BlockData<VoxelType> > >::iterator iterResult = m_pHomogenousBlockData.find(tHomogenousValue);
|
typename std::map<VoxelType, POLYVOX_SHARED_PTR< BlockData<VoxelType> > >::iterator iterResult = m_pHomogenousBlockData.find(tHomogenousValue);
|
||||||
if(iterResult == m_pHomogenousBlockData.end())
|
if(iterResult == m_pHomogenousBlockData.end())
|
||||||
{
|
{
|
||||||
Block<VoxelType> block;
|
Block<VoxelType> block;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user