From cc0a15dc94967ca3b71f75797c831d642835590b Mon Sep 17 00:00:00 2001 From: David Williams Date: Sat, 10 Dec 2011 07:35:33 +0000 Subject: [PATCH] Made BaseVolume constructor protected. --- .../include/PolyVoxCore/BaseVolume.h | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/library/PolyVoxCore/include/PolyVoxCore/BaseVolume.h b/library/PolyVoxCore/include/PolyVoxCore/BaseVolume.h index ad606409..46ea2567 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/BaseVolume.h +++ b/library/PolyVoxCore/include/PolyVoxCore/BaseVolume.h @@ -33,6 +33,11 @@ freely, subject to the following restrictions: namespace PolyVox { + /// The BaseVolume class provides common functionality and an interface for other volume classes to implement. You should not try to create an instance of this + /// class directly. Instead you should use RawVolume, SimpleVolume, or LargeVolume. + //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + /// More details to come... + //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// template class BaseVolume { @@ -103,14 +108,6 @@ namespace PolyVox #endif public: - /// Constructor for creating a fixed size volume. - BaseVolume - ( - const Region& regValid - ); - /// Destructor - ~BaseVolume(); - /// Gets the value used for voxels which are outside the volume VoxelType getBorderValue(void) const; /// Gets a Region representing the extents of the Volume. @@ -143,6 +140,14 @@ namespace PolyVox uint32_t calculateSizeInBytes(void); protected: + /// Constructor for creating a fixed size volume. + BaseVolume + ( + const Region& regValid + ); + /// Destructor + ~BaseVolume(); + //The size of the volume Region m_regValidRegion;