blob: e301e7b3e2924bfadcd3be11dc99f857d53acbd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef TERRAIN_GENERATOR_H
#define TERRAIN_GENERATOR_H
#include "terrain_loader.h"
class TerrainGenerator : public TerrainLoader {
private:
int seed;
public:
TerrainGenerator(int seed, fs::path root);
virtual ~TerrainGenerator() {};
float *generate_heights(int64_t x, int64_t y, unsigned int width, unsigned int height);
virtual float *get_chunk(int64_t x, int64_t y, unsigned int width, unsigned int height);
};
#endif
|