6 const NullShape BlockType::DEFAULT_SHAPE;
8 void BlockType::FillVBO(
10 std::vector<glm::vec3> &vertices,
11 std::vector<glm::vec3> &colors,
12 std::vector<glm::vec3> &normals
14 shape->Vertices(vertices, pos);
15 colors.insert(colors.end(), shape->VertexCount(), color);
16 shape->Normals(normals);
19 void BlockType::FillOutlineVBO(
20 std::vector<glm::vec3> &vertices,
21 std::vector<glm::vec3> &colors
23 shape->Outline(vertices);
24 colors.insert(colors.end(), shape->OutlineCount(), outline_color);
28 BlockTypeRegistry::BlockTypeRegistry() {
32 int BlockTypeRegistry::Add(const BlockType &t) {
33 int id = types.size();