1 #ifndef BLANK_WORLD_HPP_
2 #define BLANK_WORLD_HPP_
7 #include "generator.hpp"
12 #include <glm/glm.hpp>
25 Chunk **chunk = nullptr,
27 float *dist = nullptr,
28 glm::vec3 *normal = nullptr);
30 BlockTypeRegistry &BlockTypes() { return blockType; }
32 Entity &Player() { return *player; }
33 Entity &AddEntity() { entities.emplace_back(); return entities.back(); }
35 Chunk &Next(const Chunk &to, const glm::tvec3<int> &dir);
39 void Render(DirectionalLighting &);
42 BlockTypeRegistry blockType;
43 CuboidShape blockShape;
44 StairShape stairShape;
45 CuboidShape slabShape;
51 std::list<Entity> entities;