Basic perlin noise is working

This commit is contained in:
Kayne Ruse
2014-06-21 02:46:50 +10:00
parent fbaf15337f
commit ccc57ec2d2
5 changed files with 98 additions and 64 deletions
+6 -2
View File
@@ -24,13 +24,17 @@
#include "simple_rng.hpp"
#include "vector2.hpp"
class MapGenerator {
public:
MapGenerator() = default;
~MapGenerator() = default;
int Noise(int x, int y, int width, int height);
int RawNoise(int x, int y);
Vector2 RawNoise(Vector2 const&);
double Influence(Vector2 const& gridPoint, Vector2 const& queryPoint, double width, double height);
double ScaledNoise(double x, double y, double width, double height);
double ScaleOctave(double x, double y, double width, double height, double octave);
private:
SimpleRNG rng;