Fixed typo + minor errors

This commit is contained in:
Remi Beges
2012-06-10 10:27:51 +02:00
parent 879a33878e
commit 23bb9da0bd
16 changed files with 38 additions and 56 deletions

View File

@@ -60,9 +60,3 @@ void NzComplexNoiseBase::RecomputeExponentArray()
m_parametersModified = false;
}
}
NzComplexNoiseBase::~NzComplexNoiseBase()
{
//dtor
}

View File

@@ -3,7 +3,7 @@
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Noise/Config.hpp>
#if NAZARA_MODULENAME_MEMORYLEAKTRACKER || defined(NAZARA_DEBUG)
#if NAZARA_NOISE_MEMORYLEAKTRACKER || defined(NAZARA_DEBUG)
#include <Nazara/Core/Debug/MemoryLeakTracker.hpp>
#include <new>
@@ -26,4 +26,5 @@ void operator delete[](void* pointer) throw()
{
NzMemoryManager::Free(pointer, true);
}
#endif

View File

@@ -55,3 +55,5 @@ bool NzNoise::IsInitialized()
}
bool NzNoise::s_initialized = false;
//#include <Nazara/Core/DebugOff.hpp> //A INCLURE ?

View File

@@ -40,6 +40,9 @@ void NzNoiseBase::ShufflePermutationTable()
int xchanger;
unsigned int ncase;
for(int i(0) ; i < 256 ; i++)
perm[i] = i;
for(int j(0) ; j < 20 ; ++j)
for (int i(0); i < 256 ; ++i)
{
@@ -72,21 +75,4 @@ int NzNoiseBase::JenkinsHash(int a, int b, int c)
return c;
}
/*
//key = 64 bits
public long hash64shift(long key)
{
key = (~key) + (key << 21); // key = (key << 21) - key - 1;
key = key ^ (key >>> 24);
key = (key + (key << 3)) + (key << 8); // key * 265
key = key ^ (key >>> 14);
key = (key + (key << 2)) + (key << 4); // key * 21
key = key ^ (key >>> 28);
key = key + (key << 31);
return key;
}*/
NzNoiseBase::~NzNoiseBase()
{
//dtor
}
#include <Nazara/Core/DebugOff.hpp>

View File

@@ -758,3 +758,5 @@ float NzNoiseMachine::Get3DHybridMultiFractalNoiseValue(float x, float y, float
return result;
}
#include <Nazara/Core/DebugOff.hpp>