]> git.localhorst.tv Git - blank.git/blobdiff - src/world/Generator.hpp
glm backwards compatibility
[blank.git] / src / world / Generator.hpp
index cf94356a482ccfd2a5e028a83975d027f63c11c9..e431f7debbd02a588d1d118250795f0e07248a34 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef BLANK_WORLD_GENERATOR_HPP_
 #define BLANK_WORLD_GENERATOR_HPP_
 
+#include "../graphics/glm.hpp"
 #include "../rand/SimplexNoise.hpp"
 
 #include <cstdint>
 #include <vector>
-#include <glm/glm.hpp>
 
 
 namespace blank {
@@ -42,11 +42,8 @@ public:
        void operator ()(Chunk &) const noexcept;
 
 private:
-       Block Generate(const glm::vec3 &position) const noexcept;
-       static float GetValue(
-               const SimplexNoise &,
-               const glm::vec3 &,
-               const Config::NoiseParam &) noexcept;
+       struct ValueField;
+       Block Generate(const ValueField &, const glm::ivec3 &position) const noexcept;
 
 private:
        const Config &config;