X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fblock.cpp;h=ab090dadd521811209405793edb9ab306182ce16;hb=83ed3de28841d1eecfca39ff540e804cf6809b32;hp=b63b82fb22287bfd4c3513c94ce92655e4073ca7;hpb=6e59f3102d6d64355d5a30b708a326327b089aaf;p=blank.git diff --git a/src/block.cpp b/src/block.cpp index b63b82f..ab090da 100644 --- a/src/block.cpp +++ b/src/block.cpp @@ -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); }