const NullShape BlockType::DEFAULT_SHAPE;
-BlockType::BlockType(bool v, const glm::vec3 &col, const Shape *s)
+BlockType::BlockType(bool v, const glm::vec3 &col, const Shape *s) noexcept
: shape(s)
, color(col)
, outline_color(-1, -1, -1)
Model::Buffer &buf,
const glm::mat4 &transform,
Model::Index idx_offset
-) const {
+) const noexcept {
shape->Vertices(buf.vertices, buf.normals, buf.indices, transform, idx_offset);
buf.colors.insert(buf.colors.end(), shape->VertexCount(), color);
}
BlockModel::Buffer &buf,
const glm::mat4 &transform,
BlockModel::Index idx_offset
-) const {
+) const noexcept {
shape->Vertices(buf.vertices, buf.indices, transform, idx_offset);
buf.colors.insert(buf.colors.end(), shape->VertexCount(), color);
}
OutlineModel &model,
const glm::vec3 &pos_offset,
OutlineModel::Index idx_offset
-) const {
+) const noexcept {
shape->Outline(model.vertices, model.indices, pos_offset, idx_offset);
model.colors.insert(model.colors.end(), shape->OutlineCount(), outline_color);
}