const glm::vec3 &outline_color = { -1, -1, -1 })
: id(-1), visible(v), shape(shape), color(color), outline_color(outline_color) { }
- static const BlockType DEFAULT;
static const NullShape DEFAULT_SHAPE;
/// single 1x1x1 cube
struct Block {
- const BlockType *type;
+ using Pos = glm::vec3;
- constexpr explicit Block(const BlockType *t = &BlockType::DEFAULT)
- : type(t) { }
+ int type;
+
+ constexpr explicit Block(int type = 0)
+ : type(type) { }
};