mpri-graphics-project/PerlinGround.hpp

15 lines
379 B
C++
Raw Normal View History

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;
PerlinNoise* get_surface() { return &surface;}
2018-02-13 17:03:11 +01:00
private:
PerlinNoise surface;
};