When PolyVox files include other PolyVox files the 'PolyVox' part of the path is not needed. This is only needed when examples, tests, and external applications include PolyVox.

This commit is contained in:
David Williams 2015-12-20 20:56:37 +00:00
parent 4fdecf42eb
commit 354b6aa9d0
30 changed files with 72 additions and 72 deletions

View File

@ -224,6 +224,6 @@ namespace PolyVox
}; };
} }
#include "PolyVox/AStarPathfinder.inl" #include "AStarPathfinder.inl"
#endif //__PolyVox_AStarPathfinder_H__ #endif //__PolyVox_AStarPathfinder_H__

View File

@ -21,7 +21,7 @@ freely, subject to the following restrictions:
distribution. distribution.
*******************************************************************************/ *******************************************************************************/
#include "PolyVox/Impl/ErrorHandling.h" #include "Impl/ErrorHandling.h"
namespace PolyVox namespace PolyVox
{ {

View File

@ -27,13 +27,13 @@ freely, subject to the following restrictions:
#include "Impl/RandomUnitVectors.h" #include "Impl/RandomUnitVectors.h"
#include "Impl/RandomVectors.h" #include "Impl/RandomVectors.h"
#include "PolyVox/Array.h" #include "Array.h"
#include "PolyVox/Region.h" #include "Region.h"
#include "PolyVox/Raycast.h" #include "Raycast.h"
//These two should not be here! //These two should not be here!
#include "PolyVox/Material.h" #include "Material.h"
#include "PolyVox/PagedVolume.h" #include "PagedVolume.h"
#include <algorithm> #include <algorithm>
@ -77,6 +77,6 @@ namespace PolyVox
void calculateAmbientOcclusion(VolumeType* volInput, Array<3, uint8_t>* arrayResult, const Region& region, float fRayLength, uint8_t uNoOfSamplesPerOutputElement, IsVoxelTransparentCallback isVoxelTransparentCallback); void calculateAmbientOcclusion(VolumeType* volInput, Array<3, uint8_t>* arrayResult, const Region& region, float fRayLength, uint8_t uNoOfSamplesPerOutputElement, IsVoxelTransparentCallback isVoxelTransparentCallback);
} }
#include "PolyVox/AmbientOcclusionCalculator.inl" #include "AmbientOcclusionCalculator.inl"
#endif //__AmbientOcclusionCalculator_H__ #endif //__AmbientOcclusionCalculator_H__

View File

@ -24,8 +24,8 @@ freely, subject to the following restrictions:
#ifndef __PolyVox_BaseVolume_H__ #ifndef __PolyVox_BaseVolume_H__
#define __PolyVox_BaseVolume_H__ #define __PolyVox_BaseVolume_H__
#include "PolyVox/Region.h" #include "Region.h"
#include "PolyVox/Vector.h" #include "Vector.h"
#include <limits> #include <limits>
@ -135,7 +135,7 @@ namespace PolyVox
}; };
} }
#include "PolyVox/BaseVolume.inl" #include "BaseVolume.inl"
#include "PolyVox/BaseVolumeSampler.inl" #include "BaseVolumeSampler.inl"
#endif //__PolyVox_BaseVolume_H__ #endif //__PolyVox_BaseVolume_H__

View File

@ -21,7 +21,7 @@ freely, subject to the following restrictions:
distribution. distribution.
*******************************************************************************/ *******************************************************************************/
#include "PolyVox/Impl/Utility.h" #include "Impl/Utility.h"
namespace PolyVox namespace PolyVox
{ {

View File

@ -28,11 +28,11 @@ freely, subject to the following restrictions:
#include "PolyVoxForwardDeclarations.h" #include "PolyVoxForwardDeclarations.h"
#include "PolyVox/Array.h" #include "Array.h"
#include "PolyVox/BaseVolume.h" //For wrap modes... should move these? #include "BaseVolume.h" //For wrap modes... should move these?
#include "PolyVox/DefaultIsQuadNeeded.h" #include "DefaultIsQuadNeeded.h"
#include "PolyVox/Mesh.h" #include "Mesh.h"
#include "PolyVox/Vertex.h" #include "Vertex.h"
namespace PolyVox namespace PolyVox
{ {
@ -299,6 +299,6 @@ namespace PolyVox
} }
} }
#include "PolyVox/CubicSurfaceExtractor.inl" #include "CubicSurfaceExtractor.inl"
#endif #endif

View File

@ -21,7 +21,7 @@ freely, subject to the following restrictions:
distribution. distribution.
*******************************************************************************/ *******************************************************************************/
#include "PolyVox/Impl/Timer.h" #include "Impl/Timer.h"
namespace PolyVox namespace PolyVox
{ {

View File

@ -24,7 +24,7 @@ freely, subject to the following restrictions:
#ifndef __PolyVox_DefaultIsQuadNeeded_H__ #ifndef __PolyVox_DefaultIsQuadNeeded_H__
#define __PolyVox_DefaultIsQuadNeeded_H__ #define __PolyVox_DefaultIsQuadNeeded_H__
#include "PolyVox/Impl/PlatformDefinitions.h" #include "Impl/PlatformDefinitions.h"
#include <cstdint> #include <cstdint>

View File

@ -24,7 +24,7 @@ freely, subject to the following restrictions:
#ifndef __PolyVox_MarchingCubesController_H__ #ifndef __PolyVox_MarchingCubesController_H__
#define __PolyVox_MarchingCubesController_H__ #define __PolyVox_MarchingCubesController_H__
#include "PolyVox/BaseVolume.h" #include "BaseVolume.h"
#include <limits> #include <limits>

View File

@ -24,7 +24,7 @@ freely, subject to the following restrictions:
#ifndef __PolyVox_Density_H__ #ifndef __PolyVox_Density_H__
#define __PolyVox_Density_H__ #define __PolyVox_Density_H__
#include "PolyVox/DefaultMarchingCubesController.h" //We'll specialise the controller contained in here #include "DefaultMarchingCubesController.h" //We'll specialise the controller contained in here
#include "Impl/PlatformDefinitions.h" #include "Impl/PlatformDefinitions.h"

View File

@ -24,10 +24,10 @@ freely, subject to the following restrictions:
#ifndef __PolyVox_FilePager_H__ #ifndef __PolyVox_FilePager_H__
#define __PolyVox_FilePager_H__ #define __PolyVox_FilePager_H__
#include "PolyVox/Impl/PlatformDefinitions.h" #include "Impl/PlatformDefinitions.h"
#include "PolyVox/PagedVolume.h" #include "PagedVolume.h"
#include "PolyVox/Region.h" #include "Region.h"
#include <cstdlib> #include <cstdlib>
#include <ctime> #include <ctime>

View File

@ -24,7 +24,7 @@ freely, subject to the following restrictions:
#ifndef __PolyVox_IteratorController_H__ #ifndef __PolyVox_IteratorController_H__
#define __PolyVox_IteratorController_H__ #define __PolyVox_IteratorController_H__
#include "PolyVox/Region.h" #include "Region.h"
namespace PolyVox namespace PolyVox
{ {
@ -41,6 +41,6 @@ namespace PolyVox
}; };
} }
#include "PolyVox/IteratorController.inl" #include "IteratorController.inl"
#endif //__PolyVox_IteratorController_H__ #endif //__PolyVox_IteratorController_H__

View File

@ -24,9 +24,9 @@ freely, subject to the following restrictions:
#ifndef __PolyVox_LowPassFilter_H__ #ifndef __PolyVox_LowPassFilter_H__
#define __PolyVox_LowPassFilter_H__ #define __PolyVox_LowPassFilter_H__
#include "PolyVox/IteratorController.h" #include "IteratorController.h"
#include "PolyVox/RawVolume.h" //Is this desirable? #include "RawVolume.h" //Is this desirable?
#include "PolyVox/Region.h" #include "Region.h"
namespace PolyVox namespace PolyVox
{ {
@ -54,7 +54,7 @@ namespace PolyVox
}//namespace PolyVox }//namespace PolyVox
#include "PolyVox/LowPassFilter.inl" #include "LowPassFilter.inl"
#endif //__PolyVox_LowPassFilter_H__ #endif //__PolyVox_LowPassFilter_H__

View File

@ -27,11 +27,11 @@ freely, subject to the following restrictions:
#include "Impl/MarchingCubesTables.h" #include "Impl/MarchingCubesTables.h"
#include "Impl/PlatformDefinitions.h" #include "Impl/PlatformDefinitions.h"
#include "PolyVox/Array.h" #include "Array.h"
#include "PolyVox/BaseVolume.h" //For wrap modes... should move these? #include "BaseVolume.h" //For wrap modes... should move these?
#include "PolyVox/Mesh.h" #include "Mesh.h"
#include "PolyVox/DefaultMarchingCubesController.h" #include "DefaultMarchingCubesController.h"
#include "PolyVox/Vertex.h" #include "Vertex.h"
namespace PolyVox namespace PolyVox
{ {
@ -173,6 +173,6 @@ namespace PolyVox
} }
} }
#include "PolyVox/MarchingCubesSurfaceExtractor.inl" #include "MarchingCubesSurfaceExtractor.inl"
#endif #endif

View File

@ -21,7 +21,7 @@ freely, subject to the following restrictions:
distribution. distribution.
*******************************************************************************/ *******************************************************************************/
#include "PolyVox/Impl/Timer.h" #include "Impl/Timer.h"
namespace PolyVox namespace PolyVox
{ {

View File

@ -26,7 +26,7 @@ freely, subject to the following restrictions:
#include "Impl/PlatformDefinitions.h" #include "Impl/PlatformDefinitions.h"
#include "PolyVox/DefaultIsQuadNeeded.h" //we'll specialise this function for this voxel type #include "DefaultIsQuadNeeded.h" //we'll specialise this function for this voxel type
namespace PolyVox namespace PolyVox
{ {

View File

@ -24,8 +24,8 @@ freely, subject to the following restrictions:
#ifndef __PolyVox_MaterialDensityPair_H__ #ifndef __PolyVox_MaterialDensityPair_H__
#define __PolyVox_MaterialDensityPair_H__ #define __PolyVox_MaterialDensityPair_H__
#include "PolyVox/DefaultIsQuadNeeded.h" //we'll specialise this function for this voxel type #include "DefaultIsQuadNeeded.h" //we'll specialise this function for this voxel type
#include "PolyVox/DefaultMarchingCubesController.h" //We'll specialise the controller contained in here #include "DefaultMarchingCubesController.h" //We'll specialise the controller contained in here
#include "Impl/PlatformDefinitions.h" #include "Impl/PlatformDefinitions.h"

View File

@ -26,9 +26,9 @@ freely, subject to the following restrictions:
#include "Impl/PlatformDefinitions.h" #include "Impl/PlatformDefinitions.h"
#include "PolyVox/PolyVoxForwardDeclarations.h" #include "PolyVoxForwardDeclarations.h"
#include "PolyVox/Region.h" #include "Region.h"
#include "PolyVox/Vertex.h" //Should probably do away with this on in the future... #include "Vertex.h" //Should probably do away with this on in the future...
#include <algorithm> #include <algorithm>
#include <cstdlib> #include <cstdlib>
@ -98,6 +98,6 @@ namespace PolyVox
} }
} }
#include "PolyVox/Mesh.inl" #include "Mesh.inl"
#endif /* __Mesh_H__ */ #endif /* __Mesh_H__ */

View File

@ -24,9 +24,9 @@ freely, subject to the following restrictions:
#ifndef __PolyVox_PagedVolume_H__ #ifndef __PolyVox_PagedVolume_H__
#define __PolyVox_PagedVolume_H__ #define __PolyVox_PagedVolume_H__
#include "PolyVox/BaseVolume.h" #include "BaseVolume.h"
#include "PolyVox/Region.h" #include "Region.h"
#include "PolyVox/Vector.h" #include "Vector.h"
#include <limits> #include <limits>
#include <cstdlib> //For abort() #include <cstdlib> //For abort()
@ -326,8 +326,8 @@ namespace PolyVox
}; };
} }
#include "PolyVox/PagedVolume.inl" #include "PagedVolume.inl"
#include "PolyVox/PagedVolumeChunk.inl" #include "PagedVolumeChunk.inl"
#include "PolyVox/PagedVolumeSampler.inl" #include "PagedVolumeSampler.inl"
#endif //__PolyVox_PagedVolume_H__ #endif //__PolyVox_PagedVolume_H__

View File

@ -21,7 +21,7 @@ freely, subject to the following restrictions:
distribution. distribution.
*******************************************************************************/ *******************************************************************************/
#include "PolyVox/Impl/ErrorHandling.h" #include "Impl/ErrorHandling.h"
#include <algorithm> #include <algorithm>
#include <limits> #include <limits>

View File

@ -21,8 +21,8 @@ freely, subject to the following restrictions:
distribution. distribution.
*******************************************************************************/ *******************************************************************************/
#include "PolyVox/Impl/Morton.h" #include "Impl/Morton.h"
#include "PolyVox/Impl/Utility.h" #include "Impl/Utility.h"
namespace PolyVox namespace PolyVox
{ {

View File

@ -24,7 +24,7 @@ freely, subject to the following restrictions:
#ifndef __PolyVox_Picking_H__ #ifndef __PolyVox_Picking_H__
#define __PolyVox_Picking_H__ #define __PolyVox_Picking_H__
#include "PolyVox/Vector.h" #include "Vector.h"
namespace PolyVox namespace PolyVox
{ {
@ -44,6 +44,6 @@ namespace PolyVox
PickResult pickVoxel(VolumeType* volData, const Vector3DFloat& v3dStart, const Vector3DFloat& v3dDirectionAndLength, const typename VolumeType::VoxelType& emptyVoxelExample); PickResult pickVoxel(VolumeType* volData, const Vector3DFloat& v3dStart, const Vector3DFloat& v3dDirectionAndLength, const typename VolumeType::VoxelType& emptyVoxelExample);
} }
#include "PolyVox/Picking.inl" #include "Picking.inl"
#endif //__PolyVox_Picking_H__ #endif //__PolyVox_Picking_H__

View File

@ -21,7 +21,7 @@ freely, subject to the following restrictions:
distribution. distribution.
*******************************************************************************/ *******************************************************************************/
#include "PolyVox/Raycast.h" #include "Raycast.h"
namespace PolyVox namespace PolyVox
{ {

View File

@ -24,9 +24,9 @@ freely, subject to the following restrictions:
#ifndef __PolyVox_RawVolume_H__ #ifndef __PolyVox_RawVolume_H__
#define __PolyVox_RawVolume_H__ #define __PolyVox_RawVolume_H__
#include "PolyVox/BaseVolume.h" #include "BaseVolume.h"
#include "PolyVox/Region.h" #include "Region.h"
#include "PolyVox/Vector.h" #include "Vector.h"
#include <cstdlib> //For abort() #include <cstdlib> //For abort()
#include <limits> #include <limits>
@ -171,7 +171,7 @@ namespace PolyVox
}; };
} }
#include "PolyVox/RawVolume.inl" #include "RawVolume.inl"
#include "PolyVox/RawVolumeSampler.inl" #include "RawVolumeSampler.inl"
#endif //__PolyVox_RawVolume_H__ #endif //__PolyVox_RawVolume_H__

View File

@ -24,7 +24,7 @@ freely, subject to the following restrictions:
#ifndef __PolyVox_Raycast_H__ #ifndef __PolyVox_Raycast_H__
#define __PolyVox_Raycast_H__ #define __PolyVox_Raycast_H__
#include "PolyVox/Vector.h" #include "Vector.h"
namespace PolyVox namespace PolyVox
{ {
@ -98,6 +98,6 @@ namespace PolyVox
RaycastResult raycastWithDirection(VolumeType* volData, const Vector3DFloat& v3dStart, const Vector3DFloat& v3dDirectionAndLength, Callback& callback); RaycastResult raycastWithDirection(VolumeType* volData, const Vector3DFloat& v3dStart, const Vector3DFloat& v3dDirectionAndLength, Callback& callback);
} }
#include "PolyVox/Raycast.inl" #include "Raycast.inl"
#endif //__PolyVox_Raycast_H__ #endif //__PolyVox_Raycast_H__

View File

@ -26,7 +26,7 @@ freely, subject to the following restrictions:
#include "Impl/PlatformDefinitions.h" #include "Impl/PlatformDefinitions.h"
#include "PolyVox/Vector.h" #include "Vector.h"
namespace PolyVox namespace PolyVox
{ {
@ -454,6 +454,6 @@ namespace PolyVox
} }
} }
#include "PolyVox/Region.inl" #include "Region.inl"
#endif #endif

View File

@ -242,7 +242,7 @@ namespace std
} }
#include "PolyVox/Vector.inl" #include "Vector.inl"
#endif #endif

View File

@ -26,7 +26,7 @@ freely, subject to the following restrictions:
#include "Impl/PlatformDefinitions.h" #include "Impl/PlatformDefinitions.h"
#include "PolyVox/Vector.h" #include "Vector.h"
#include <bitset> #include <bitset>
#include <vector> #include <vector>

View File

@ -24,7 +24,7 @@ freely, subject to the following restrictions:
#ifndef __PolyVox_VolumeResampler_H__ #ifndef __PolyVox_VolumeResampler_H__
#define __PolyVox_VolumeResampler_H__ #define __PolyVox_VolumeResampler_H__
#include "PolyVox/Region.h" #include "Region.h"
namespace PolyVox namespace PolyVox
{ {
@ -51,7 +51,7 @@ namespace PolyVox
}//namespace PolyVox }//namespace PolyVox
#include "PolyVox/VolumeResampler.inl" #include "VolumeResampler.inl"
#endif #endif

View File

@ -21,7 +21,7 @@ freely, subject to the following restrictions:
distribution. distribution.
*******************************************************************************/ *******************************************************************************/
#include "PolyVox/Interpolation.h" #include "Interpolation.h"
#include <cmath> #include <cmath>