Add a get_surface method to perlin ground
This commit is contained in:
parent
083bc3c654
commit
aafbd8ec9c
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@ class PerlinGround : public Ground {
|
||||||
PerlinGround(unsigned int seed);
|
PerlinGround(unsigned int seed);
|
||||||
double operator() (double, double) const;
|
double operator() (double, double) const;
|
||||||
Point get_normal(double x, double y) const;
|
Point get_normal(double x, double y) const;
|
||||||
|
PerlinNoise* get_surface() { return &surface;}
|
||||||
private:
|
private:
|
||||||
PerlinNoise surface;
|
PerlinNoise surface;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue