Added template template parameters to CubicSurfaceExtractorWithNormals.

This commit is contained in:
David Williams
2011-04-30 22:46:45 +01:00
parent 87d97436ea
commit 36a9be83db
3 changed files with 8 additions and 8 deletions

View File

@ -31,18 +31,18 @@ freely, subject to the following restrictions:
namespace PolyVox
{
template <typename VolumeType, typename VoxelType>
template< template<typename> class VolumeType, typename VoxelType>
class CubicSurfaceExtractorWithNormals
{
public:
CubicSurfaceExtractorWithNormals(VolumeType* volData, Region region, SurfaceMesh<PositionMaterialNormal>* result);
CubicSurfaceExtractorWithNormals(VolumeType<VoxelType>* volData, Region region, SurfaceMesh<PositionMaterialNormal>* result);
void execute();
private:
//The volume data and a sampler to access it.
VolumeType* m_volData;
typename VolumeType::Sampler m_sampVolume;
VolumeType<VoxelType>* m_volData;
typename VolumeType<VoxelType>::Sampler m_sampVolume;
//The surface patch we are currently filling.
SurfaceMesh<PositionMaterialNormal>* m_meshCurrent;