Refactoring of basic voxel types.
This commit is contained in:
@ -49,11 +49,11 @@ namespace PolyVox
|
||||
|
||||
const bool VoxelTypeTraits< DensityFloat >::HasDensity = true;
|
||||
const bool VoxelTypeTraits< DensityFloat >::HasMaterial = false;
|
||||
const DensityFloat::DensityType VoxelTypeTraits< DensityFloat >::MinDensity = FLT_MIN;
|
||||
const DensityFloat::DensityType VoxelTypeTraits< DensityFloat >::MinDensity = -FLT_MAX;
|
||||
const DensityFloat::DensityType VoxelTypeTraits< DensityFloat >::MaxDensity = FLT_MAX;
|
||||
|
||||
const bool VoxelTypeTraits< DensityDouble >::HasDensity = true;
|
||||
const bool VoxelTypeTraits< DensityDouble >::HasMaterial = false;
|
||||
const DensityDouble::DensityType VoxelTypeTraits< DensityDouble >::MinDensity = DBL_MIN;
|
||||
const DensityDouble::DensityType VoxelTypeTraits< DensityDouble >::MinDensity = -DBL_MAX;
|
||||
const DensityDouble::DensityType VoxelTypeTraits< DensityDouble >::MaxDensity = DBL_MAX;
|
||||
}
|
@ -29,10 +29,16 @@ namespace PolyVox
|
||||
{
|
||||
const bool VoxelTypeTraits< MaterialU8 >::HasDensity = false;
|
||||
const bool VoxelTypeTraits< MaterialU8 >::HasMaterial = true;
|
||||
const MaterialU8::DensityType VoxelTypeTraits< MaterialU8 >::MinDensity = 0;
|
||||
const MaterialU8::DensityType VoxelTypeTraits< MaterialU8 >::MaxDensity = 0;
|
||||
|
||||
const bool VoxelTypeTraits< MaterialU16 >::HasDensity = false;
|
||||
const bool VoxelTypeTraits< MaterialU16 >::HasMaterial = true;
|
||||
const MaterialU16::DensityType VoxelTypeTraits< MaterialU16 >::MinDensity = 0;
|
||||
const MaterialU16::DensityType VoxelTypeTraits< MaterialU16 >::MaxDensity = 0;
|
||||
|
||||
const bool VoxelTypeTraits< MaterialU32 >::HasDensity = false;
|
||||
const bool VoxelTypeTraits< MaterialU32 >::HasMaterial = true;
|
||||
const MaterialU32::DensityType VoxelTypeTraits< MaterialU32 >::MinDensity = 0;
|
||||
const MaterialU32::DensityType VoxelTypeTraits< MaterialU32 >::MaxDensity = 0;
|
||||
}
|
@ -29,4 +29,9 @@ namespace PolyVox
|
||||
const bool VoxelTypeTraits<Type>::HasDensity = false;
|
||||
template<typename Type>
|
||||
const bool VoxelTypeTraits<Type>::HasMaterial = false;
|
||||
|
||||
template<typename Type>
|
||||
const typename Type::DensityType VoxelTypeTraits< Type >::MinDensity = 0;
|
||||
template<typename Type>
|
||||
const typename Type::DensityType VoxelTypeTraits< Type >::MaxDensity = 0;
|
||||
}
|
Reference in New Issue
Block a user