diff --git a/library/PolyVoxCore/include/PolyVoxCore/RaycastWithCallback.h b/library/PolyVoxCore/include/PolyVoxCore/RaycastWithCallback.h index 972d0a4f..767972df 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/RaycastWithCallback.h +++ b/library/PolyVoxCore/include/PolyVoxCore/RaycastWithCallback.h @@ -28,12 +28,12 @@ freely, subject to the following restrictions: namespace PolyVox { - template< template class VolumeType, typename VoxelType> + template class RaycastWithCallback { public: ///Constructor - RaycastWithCallback(VolumeType* volData, const Vector3DFloat& v3dStart, const Vector3DFloat& v3dDirectionAndLength, polyvox_function funcCallback); + RaycastWithCallback(VolumeType* volData, const Vector3DFloat& v3dStart, const Vector3DFloat& v3dDirectionAndLength, polyvox_function funcCallback); ///Sets the start position for the ray. void setStart(const Vector3DFloat& v3dStart); @@ -48,8 +48,8 @@ namespace PolyVox void doRaycast(float x1, float y1, float z1, float x2, float y2, float z2); - VolumeType* m_volData; - typename VolumeType::Sampler m_sampVolume; + VolumeType* m_volData; + typename VolumeType::Sampler m_sampVolume; Vector3DFloat m_v3dStart; Vector3DFloat m_v3dDirectionAndLength; diff --git a/library/PolyVoxCore/include/PolyVoxCore/RaycastWithCallback.inl b/library/PolyVoxCore/include/PolyVoxCore/RaycastWithCallback.inl index c3da4620..a8fc8def 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/RaycastWithCallback.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/RaycastWithCallback.inl @@ -23,8 +23,8 @@ freely, subject to the following restrictions: namespace PolyVox { - template< template class VolumeType, typename VoxelType> - RaycastWithCallback::RaycastWithCallback(VolumeType* volData, const Vector3DFloat& v3dStart, const Vector3DFloat& v3dDirectionAndLength, polyvox_function funcCallback) + template + RaycastWithCallback::RaycastWithCallback(VolumeType* volData, const Vector3DFloat& v3dStart, const Vector3DFloat& v3dDirectionAndLength, polyvox_function funcCallback) :m_volData(volData) ,m_sampVolume(volData) ,m_v3dStart(v3dStart) @@ -36,20 +36,20 @@ namespace PolyVox assert(m_funcCallback); } - template< template class VolumeType, typename VoxelType> - void RaycastWithCallback::setStart(const Vector3DFloat& v3dStart) + template + void RaycastWithCallback::setStart(const Vector3DFloat& v3dStart) { m_v3dStart = v3dStart; } - template< template class VolumeType, typename VoxelType> - void RaycastWithCallback::setDirection(const Vector3DFloat& v3dDirectionAndLength) + template + void RaycastWithCallback::setDirection(const Vector3DFloat& v3dDirectionAndLength) { m_v3dDirectionAndLength = v3dDirectionAndLength; } - template< template class VolumeType, typename VoxelType> - void RaycastWithCallback::execute(void) + template + void RaycastWithCallback::execute(void) { //The doRaycast function is assuming that it is iterating over the areas defined between //voxels. We actually want to define the areas as being centered on voxels (as this is @@ -92,8 +92,8 @@ namespace PolyVox // It should simply read "if (ty <= tz)". // // This error was reported by Joey Hammer (PixelActive). - template< template class VolumeType, typename VoxelType> - void RaycastWithCallback::doRaycast(float x1, float y1, float z1, float x2, float y2, float z2) + template + void RaycastWithCallback::doRaycast(float x1, float y1, float z1, float x2, float y2, float z2) { int i = (int)floorf(x1); int j = (int)floorf(y1);