Normalized line endings

This commit is contained in:
David Williams
2014-09-25 22:38:01 +02:00
parent c560e84be5
commit 86357d66b7
106 changed files with 50344 additions and 50344 deletions

View File

@ -34,26 +34,26 @@ freely, subject to the following restrictions:
using namespace PolyVox;
template<typename _VoxelType>
class CustomIsQuadNeeded
{
template<typename _VoxelType>
class CustomIsQuadNeeded
{
public:
typedef _VoxelType VoxelType;
bool operator()(VoxelType back, VoxelType front, VoxelType& materialToUse)
{
// Not a useful test - it just does something different
// to the DefaultIsQuadNeeded so we can check it compiles.
if ((back > 1) && (front <= 1))
{
bool operator()(VoxelType back, VoxelType front, VoxelType& materialToUse)
{
// Not a useful test - it just does something different
// to the DefaultIsQuadNeeded so we can check it compiles.
if ((back > 1) && (front <= 1))
{
materialToUse = static_cast<VoxelType>(back);
return true;
}
else
{
return false;
}
}
return true;
}
else
{
return false;
}
}
};
// Runs the surface extractor for a given type.