Work on refactoring voxel type.
This commit is contained in:
@ -27,21 +27,33 @@ freely, subject to the following restrictions:
|
||||
|
||||
namespace PolyVox
|
||||
{
|
||||
const bool VoxelTypeTraits< DensityI8 >::HasDensity = true;
|
||||
const bool VoxelTypeTraits< DensityI8 >::HasMaterial = false;
|
||||
const DensityI8::DensityType VoxelTypeTraits< DensityI8 >::MinDensity = -127;
|
||||
const DensityI8::DensityType VoxelTypeTraits< DensityI8 >::MaxDensity = 127;
|
||||
|
||||
const bool VoxelTypeTraits< DensityU8 >::HasDensity = true;
|
||||
const bool VoxelTypeTraits< DensityU8 >::HasMaterial = false;
|
||||
const DensityU8::DensityType VoxelTypeTraits< DensityU8 >::MinDensity = 0;
|
||||
const DensityU8::DensityType VoxelTypeTraits< DensityU8 >::MaxDensity = 255;
|
||||
|
||||
const bool VoxelTypeTraits< DensityI16 >::HasDensity = true;
|
||||
const bool VoxelTypeTraits< DensityI16 >::HasMaterial = false;
|
||||
const DensityI16::DensityType VoxelTypeTraits< DensityI16 >::MinDensity = -32767;
|
||||
const DensityI16::DensityType VoxelTypeTraits< DensityI16 >::MaxDensity = 32767;
|
||||
|
||||
const bool VoxelTypeTraits< DensityU16 >::HasDensity = true;
|
||||
const bool VoxelTypeTraits< DensityU16 >::HasMaterial = false;
|
||||
const DensityU16::DensityType VoxelTypeTraits< DensityU16 >::MinDensity = 0;
|
||||
const DensityU16::DensityType VoxelTypeTraits< DensityU16 >::MaxDensity = 65535;
|
||||
|
||||
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 >::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 >::MaxDensity = DBL_MAX;
|
||||
}
|
Reference in New Issue
Block a user