X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel%2Fshape.cpp;h=7422f899e856297f7ccb2f49bbbf53c2c2fa991a;hb=8ab4ea13545cccbacbd1ed610968d3f481c1b3c8;hp=4ee5b8f24299c74163c48d5bc3c5c7b46d5ae773;hpb=be3a81656b8493010d2329fa00da617e24293438;p=blank.git diff --git a/src/model/shape.cpp b/src/model/shape.cpp index 4ee5b8f..7422f89 100644 --- a/src/model/shape.cpp +++ b/src/model/shape.cpp @@ -59,6 +59,17 @@ void Shape::Vertices( } } +void Shape::Vertices( + SkyBoxModel::Buffer &out +) const { + for (const auto &pos : vtx_pos) { + out.vertices.emplace_back(pos); + } + for (auto idx : vtx_idx) { + out.indices.emplace_back(idx); + } +} + void Shape::Outline(OutlineModel::Buffer &out) const { out.vertices.insert(out.vertices.end(), out_pos.begin(), out_pos.end()); out.indices.insert(out.indices.end(), out_idx.begin(), out_idx.end());