Moved VolumeSampler into Volume class.
This commit is contained in:
@ -22,7 +22,6 @@ freely, subject to the following restrictions:
|
||||
*******************************************************************************/
|
||||
|
||||
#include "Volume.h"
|
||||
#include "VolumeSampler.h"
|
||||
#include "PolyVoxImpl/Utility.h"
|
||||
|
||||
namespace PolyVox
|
||||
@ -99,7 +98,7 @@ namespace PolyVox
|
||||
stream.write(reinterpret_cast<char*>(&volumeDepthPower), sizeof(volumeDepthPower));
|
||||
|
||||
//Write data
|
||||
VolumeSampler<VoxelType> volIter(&volume);
|
||||
Volume<VoxelType>::VolumeSampler volIter(&volume);
|
||||
for(uint16_t z = 0; z < volumeDepth; ++z)
|
||||
{
|
||||
//Update progress once per slice.
|
||||
@ -213,7 +212,7 @@ namespace PolyVox
|
||||
stream.write(reinterpret_cast<char*>(&volumeDepthPower), sizeof(volumeDepthPower));
|
||||
|
||||
//Write data
|
||||
VolumeSampler<VoxelType> volIter(&volume);
|
||||
Volume<VoxelType>::VolumeSampler volIter(&volume);
|
||||
VoxelType current;
|
||||
uint32_t runLength = 0;
|
||||
bool firstTime = true;
|
||||
@ -381,7 +380,7 @@ namespace PolyVox
|
||||
stream.write(reinterpret_cast<char*>(&volumeDepth), sizeof(volumeDepth));
|
||||
|
||||
//Write data
|
||||
VolumeSampler<VoxelType> volIter(&volume);
|
||||
Volume<VoxelType>::VolumeSampler volIter(&volume);
|
||||
VoxelType current;
|
||||
uint32_t runLength = 0;
|
||||
bool firstTime = true;
|
||||
|
@ -30,7 +30,6 @@ freely, subject to the following restrictions:
|
||||
#include "PolyVoxImpl/Utility.h"
|
||||
#include "Vector.h"
|
||||
#include "Volume.h"
|
||||
#include "VolumeSampler.h"
|
||||
|
||||
namespace PolyVox
|
||||
{
|
||||
|
Reference in New Issue
Block a user