Move to VS 2010.
Update to Ogre SDK 1.7.1 Removed support for compilers which don't adhere to C++0X
This commit is contained in:
@ -238,7 +238,7 @@ namespace PolyVox
|
||||
const uint16_t yOffset = uYPos - (blockY << m_uBlockSideLengthPower);
|
||||
const uint16_t zOffset = uZPos - (blockZ << m_uBlockSideLengthPower);
|
||||
|
||||
const POLYVOX_SHARED_PTR< Block< VoxelType > >& block = m_pBlocks
|
||||
const std::shared_ptr< Block< VoxelType > >& block = m_pBlocks
|
||||
[
|
||||
blockX +
|
||||
blockY * m_uWidthInBlocks +
|
||||
@ -272,7 +272,7 @@ namespace PolyVox
|
||||
blockY * m_uWidthInBlocks +
|
||||
blockZ * m_uWidthInBlocks * m_uHeightInBlocks;
|
||||
|
||||
POLYVOX_SHARED_PTR< Block<VoxelType> >& block = m_pBlocks[uBlockIndex];
|
||||
std::shared_ptr< Block<VoxelType> >& block = m_pBlocks[uBlockIndex];
|
||||
|
||||
//It's quite possible that the user might attempt to set a voxel to it's current value.
|
||||
//We test for this case firstly because it could help performance, but more importantly
|
||||
@ -288,7 +288,7 @@ namespace PolyVox
|
||||
}
|
||||
else
|
||||
{
|
||||
POLYVOX_SHARED_PTR< Block<VoxelType> > pNewBlock(new Block<VoxelType>(*(block)));
|
||||
std::shared_ptr< Block<VoxelType> > pNewBlock(new Block<VoxelType>(*(block)));
|
||||
block = pNewBlock;
|
||||
m_vecBlockIsPotentiallyHomogenous[uBlockIndex] = false;
|
||||
block->setVoxelAt(xOffset,yOffset,zOffset, tValue);
|
||||
@ -344,7 +344,7 @@ namespace PolyVox
|
||||
}
|
||||
|
||||
//Identify and remove any homogeneous blocks which are not actually in use.
|
||||
typename std::map<VoxelType, POLYVOX_SHARED_PTR< Block<VoxelType> > >::iterator iter = m_pHomogenousBlock.begin();
|
||||
typename std::map<VoxelType, std::shared_ptr< Block<VoxelType> > >::iterator iter = m_pHomogenousBlock.begin();
|
||||
while(iter != m_pHomogenousBlock.end())
|
||||
{
|
||||
if(iter->second.unique())
|
||||
@ -361,13 +361,13 @@ namespace PolyVox
|
||||
|
||||
#pragma region Private Implementation
|
||||
template <typename VoxelType>
|
||||
POLYVOX_SHARED_PTR< Block<VoxelType> > Volume<VoxelType>::getHomogenousBlock(VoxelType tHomogenousValue)
|
||||
std::shared_ptr< Block<VoxelType> > Volume<VoxelType>::getHomogenousBlock(VoxelType tHomogenousValue)
|
||||
{
|
||||
typename std::map<VoxelType, POLYVOX_SHARED_PTR< Block<VoxelType> > >::iterator iterResult = m_pHomogenousBlock.find(tHomogenousValue);
|
||||
typename std::map<VoxelType, std::shared_ptr< Block<VoxelType> > >::iterator iterResult = m_pHomogenousBlock.find(tHomogenousValue);
|
||||
if(iterResult == m_pHomogenousBlock.end())
|
||||
{
|
||||
//Block<VoxelType> block;
|
||||
POLYVOX_SHARED_PTR< Block<VoxelType> > pHomogeneousBlock(new Block<VoxelType>(m_uBlockSideLength));
|
||||
std::shared_ptr< Block<VoxelType> > pHomogeneousBlock(new Block<VoxelType>(m_uBlockSideLength));
|
||||
//block.m_pBlock = temp;
|
||||
//block.m_uReferenceCount++;
|
||||
pHomogeneousBlock->fill(tHomogenousValue);
|
||||
@ -377,7 +377,7 @@ namespace PolyVox
|
||||
else
|
||||
{
|
||||
//iterResult->second.m_uReferenceCount++;
|
||||
//POLYVOX_SHARED_PTR< Block<VoxelType> > result(iterResult->second);
|
||||
//std::shared_ptr< Block<VoxelType> > result(iterResult->second);
|
||||
return iterResult->second;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user