2018-02-13 17:03:11 +01:00
|
|
|
#pragma once
|
|
|
|
#include "Ground.hpp"
|
|
|
|
#include "PerlinNoise.hpp"
|
|
|
|
|
|
|
|
class PerlinGround : public Ground {
|
|
|
|
public:
|
|
|
|
PerlinGround();
|
|
|
|
PerlinGround(unsigned int seed);
|
|
|
|
double operator() (double, double) const;
|
2018-02-13 18:06:01 +01:00
|
|
|
Point get_normal(double x, double y) const;
|
2018-02-13 18:25:53 +01:00
|
|
|
PerlinNoise* get_surface() { return &surface;}
|
2018-02-13 17:03:11 +01:00
|
|
|
private:
|
|
|
|
PerlinNoise surface;
|
|
|
|
};
|