X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgenerator.hpp;fp=src%2Fgenerator.hpp;h=a40184bf719794e2cde735da82c865e452d3aca8;hb=8acc3f990f1a5ee00471f72c150b407164149f2d;hp=0000000000000000000000000000000000000000;hpb=9c1f7b20394808f7ec7a6cadd9e0dd665c6f6bd5;p=blank.git diff --git a/src/generator.hpp b/src/generator.hpp new file mode 100644 index 0000000..a40184b --- /dev/null +++ b/src/generator.hpp @@ -0,0 +1,35 @@ +#ifndef BLANK_GENERATOR_HPP_ +#define BLANK_GENERATOR_HPP_ + +#include "block.hpp" +#include "chunk.hpp" +#include "noise.hpp" + +#include + + +namespace blank { + +class Generator { + +public: + explicit Generator(unsigned int seed); + + void operator ()(Chunk &) const; + + void Solids(const std::vector &s) { solids = s; } + +private: + SimplexNoise solidNoise; + SimplexNoise typeNoise; + + float stretch; + float solid_threshold; + + std::vector solids; + +}; + +} + +#endif