X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fblock.cpp;fp=src%2Fblock.cpp;h=cdfc452868ee4013298fed5d69e0fd4abef953ea;hb=f932e8c0273794bcd954c9f5b504bad6140f7cf4;hp=b0de21aff95bf52d1538ec703b4cf55d6fc82f19;hpb=0d6efa28245acaf22383bdf398b5537d1fe33ce2;p=blank.git diff --git a/src/block.cpp b/src/block.cpp index b0de21a..cdfc452 100644 --- a/src/block.cpp +++ b/src/block.cpp @@ -6,12 +6,12 @@ namespace blank { const NullShape BlockType::DEFAULT_SHAPE; void BlockType::FillModel( - Model &model, + Model::Buffer &buf, const glm::vec3 &pos_offset, Model::Index idx_offset ) const { - shape->Vertices(model.vertices, model.normals, model.indices, pos_offset, idx_offset); - model.colors.insert(model.colors.end(), shape->VertexCount(), color); + shape->Vertices(buf.vertices, buf.normals, buf.indices, pos_offset, idx_offset); + buf.colors.insert(buf.colors.end(), shape->VertexCount(), color); } void BlockType::FillOutlineModel(