From aafbd8ec9cdee602abaa4a0cf26bb2486f2f3b42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Oudin?= Date: Tue, 13 Feb 2018 18:25:53 +0100 Subject: [PATCH] Add a get_surface method to perlin ground --- PerlinGround.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/PerlinGround.hpp b/PerlinGround.hpp index 597624c..08f3182 100644 --- a/PerlinGround.hpp +++ b/PerlinGround.hpp @@ -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; };