You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
806 B
44 lines
806 B
/* |
|
* ===================================================================================== |
|
* |
|
* Filename: terraingen.h |
|
* |
|
* Description: Terrain generator powered by libnoise |
|
* |
|
* Version: 1.0 |
|
* Created: 05/08/2014 06:42:22 PM |
|
* Revision: none |
|
* Compiler: gcc |
|
* |
|
* Author: YOUR NAME (), |
|
* Organization: |
|
* |
|
* ===================================================================================== |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include <map> |
|
#include <utility> |
|
#include <memory> |
|
|
|
#include "terrain/noisemodule.h" |
|
|
|
namespace vtk { |
|
|
|
class Chunk; |
|
|
|
class TerrainGen { |
|
public: |
|
TerrainGen(); |
|
|
|
void generateChunk(Chunk* chunk); |
|
|
|
protected: |
|
std::shared_ptr<noise::NoiseModule> mNoise; |
|
|
|
//variables (replace by config) |
|
double mTerrainScale; |
|
}; |
|
|
|
}
|
|
|