From b9269c1778237e4052dfce0c2871d2e0ebb71965 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 24 Jan 2012 16:22:11 +0100 Subject: [PATCH] Refactoring of basic voxel types. --- library/PolyVoxCore/include/PolyVoxCore/Voxel.h | 4 ++-- library/PolyVoxCore/source/Voxel.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library/PolyVoxCore/include/PolyVoxCore/Voxel.h b/library/PolyVoxCore/include/PolyVoxCore/Voxel.h index d76b3365..6474d71d 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Voxel.h +++ b/library/PolyVoxCore/include/PolyVoxCore/Voxel.h @@ -68,8 +68,8 @@ namespace PolyVox class VoxelTypeTraits { public: - const static Type MinDensity; - const static Type MaxDensity; + const static bool HasDensity; + const static bool HasMaterial; }; } diff --git a/library/PolyVoxCore/source/Voxel.cpp b/library/PolyVoxCore/source/Voxel.cpp index 00770b82..c271e278 100644 --- a/library/PolyVoxCore/source/Voxel.cpp +++ b/library/PolyVoxCore/source/Voxel.cpp @@ -26,7 +26,7 @@ freely, subject to the following restrictions: namespace PolyVox { template - const Type VoxelTypeTraits::MinDensity = 0; + const bool VoxelTypeTraits::HasDensity = false; template - const Type VoxelTypeTraits::MaxDensity = 0; + const bool VoxelTypeTraits::HasMaterial = false; } \ No newline at end of file