Add a get_surface method to perlin ground

This commit is contained in:
Rémi Oudin 2018-02-13 18:25:53 +01:00
parent 083bc3c654
commit aafbd8ec9c

View file

@ -8,6 +8,7 @@ class PerlinGround : public Ground {
PerlinGround(unsigned int seed);
double operator() (double, double) const;
Point get_normal(double x, double y) const;
PerlinNoise* get_surface() { return &surface;}
private:
PerlinNoise surface;
};