13 lines
324 B
C++
13 lines
324 B
C++
#pragma once
|
|
#include "Ground.hpp"
|
|
#include "PerlinNoise.hpp"
|
|
|
|
class PerlinGround : public Ground {
|
|
public:
|
|
PerlinGround();
|
|
PerlinGround(unsigned int seed);
|
|
double operator() (double, double) const;
|
|
Point get_normal(double x, double y) const;
|
|
private:
|
|
PerlinNoise surface;
|
|
};
|