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.

terraingen.h 765B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * =====================================================================================
  3. *
  4. * Filename: terraingen.h
  5. *
  6. * Description: Terrain generator powered by libnoise
  7. *
  8. * Version: 1.0
  9. * Created: 05/08/2014 06:42:22 PM
  10. * Revision: none
  11. * Compiler: gcc
  12. *
  13. * Author: YOUR NAME (),
  14. * Organization:
  15. *
  16. * =====================================================================================
  17. */
  18. #pragma once
  19. #include <map>
  20. #include <utility>
  21. #include "terrain/noisemodule.h"
  22. namespace vtk {
  23. class Chunk;
  24. class TerrainGen {
  25. public:
  26. TerrainGen();
  27. void generateChunk(Chunk* chunk);
  28. protected:
  29. NoiseModule* mNoise;
  30. //variables (replace by config)
  31. double mTerrainScale;
  32. };
  33. }