1 #ifndef BLANK_WORLD_HPP_
2 #define BLANK_WORLD_HPP_
12 #include <glm/glm.hpp>
22 void Generate(const glm::tvec3<int> &from, const glm::tvec3<int> &to);
27 Chunk **chunk = nullptr,
29 float *dist = nullptr,
30 glm::vec3 *normal = nullptr);
32 BlockTypeRegistry &BlockTypes() { return blockType; }
33 std::list<Chunk> &LoadedChunks() { return loaded; }
35 Entity &Player() { return player; }
37 Chunk &Next(const Chunk &, const glm::vec3 &dir);
41 void Render(DirectionalLighting &);
44 void Generate(Chunk &);
47 BlockTypeRegistry blockType;
48 CuboidShape blockShape;
49 StairShape stairShape;
50 CuboidShape slabShape;
52 SimplexNoise blockNoise;
53 SimplexNoise colorNoise;
57 std::list<Chunk> loaded;
58 std::list<Chunk> to_generate;