]> git.localhorst.tv Git - blank.git/blobdiff - src/block.cpp
block place/remove timers
[blank.git] / src / block.cpp
index b63b82fb22287bfd4c3513c94ce92655e4073ca7..ab090dadd521811209405793edb9ab306182ce16 100644 (file)
@@ -10,7 +10,7 @@ namespace blank {
 
 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)
@@ -26,7 +26,7 @@ void BlockType::FillModel(
        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);
 }
@@ -35,7 +35,7 @@ void BlockType::FillBlockModel(
        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);
 }
@@ -44,7 +44,7 @@ void BlockType::FillOutlineModel(
        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);
 }