blob: 717419d652579387d948c5e7fee0f10aa0ded473 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef TERRAIN_GENERATOR_H
#define TERRAIN_GENERATOR_H
#include "terrain_loader.h"
#include "vector.h"
#include <boost/shared_ptr.hpp>
class TerrainGenerator : public TerrainLoader {
private:
int seed;
public:
typedef boost::shared_ptr<TerrainGenerator> p;
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);
std::list<Vector3> generate_objects(int64_t x, int64_t y, unsigned int width, unsigned int height);
virtual std::list<Vector3> get_objects(int64_t x, int64_t y, unsigned int width, unsigned int height);
};
#endif
|