Switch from Nz prefix to namespace Nz
What a huge commit Former-commit-id: 38ac5eebf70adc1180f571f6006192d28fb99897
This commit is contained in:
@@ -12,24 +12,28 @@
|
||||
#include <Nazara/Noise/Abstract2DNoise.hpp>
|
||||
#include <Nazara/Math/Vector2.hpp>
|
||||
|
||||
class NAZARA_NOISE_API NzPerlin2D : public NzAbstract2DNoise
|
||||
namespace Nz
|
||||
{
|
||||
public:
|
||||
NzPerlin2D();
|
||||
NzPerlin2D(unsigned int seed);
|
||||
float GetValue(float x, float y, float resolution);
|
||||
~NzPerlin2D() = default;
|
||||
protected:
|
||||
private:
|
||||
int x0, y0;
|
||||
int gi0,gi1,gi2,gi3;
|
||||
int ii, jj;
|
||||
float gradient2[8][2];
|
||||
float s,t,u,v;
|
||||
float Cx,Cy;
|
||||
float Li1, Li2;
|
||||
NzVector2<float> temp;
|
||||
};
|
||||
class NAZARA_NOISE_API Perlin2D : public Abstract2DNoise
|
||||
{
|
||||
public:
|
||||
Perlin2D();
|
||||
Perlin2D(unsigned int seed);
|
||||
~Perlin2D() = default;
|
||||
|
||||
float GetValue(float x, float y, float resolution);
|
||||
|
||||
private:
|
||||
int x0, y0;
|
||||
int gi0,gi1,gi2,gi3;
|
||||
int ii, jj;
|
||||
float gradient2[8][2];
|
||||
float s,t,u,v;
|
||||
float Cx,Cy;
|
||||
float Li1, Li2;
|
||||
Vector2<float> temp;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // PERLIN2D_HPP
|
||||
|
||||
|
||||
Reference in New Issue
Block a user