X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel%2FShape.hpp;h=312b1aafd1cf212951ffeee433ed2a22b99da5bf;hb=8ab4ea13545cccbacbd1ed610968d3f481c1b3c8;hp=51b950f90ebe52b19865776097a7a5c881a201e6;hpb=7bb75960dbf9bfdee9ac865384aca81791b3da5c;p=blank.git diff --git a/src/model/Shape.hpp b/src/model/Shape.hpp index 51b950f..312b1aa 100644 --- a/src/model/Shape.hpp +++ b/src/model/Shape.hpp @@ -4,6 +4,7 @@ #include "BlockModel.hpp" #include "EntityModel.hpp" #include "OutlineModel.hpp" +#include "SkyBoxModel.hpp" #include @@ -45,19 +46,17 @@ struct Shape { float tex_offset = 0.0f, BlockModel::Index idx_offset = 0 ) const; + void Vertices( + SkyBoxModel::Buffer &out + ) const; /// the number of vertices this shape's outline has size_t OutlineCount() const { return out_pos.size(); } /// the number of vertex indices this shape's outline has size_t OutlineIndexCount() const { return out_idx.size(); } - /// fill given buffers with this shape's outline's elements with - /// an optional offset - void Outline( - OutlineModel::Buffer &out, - const OutlineModel::Position &offset = { 0.0f, 0.0f, 0.0f }, - OutlineModel::Index idx_offset = 0 - ) const; + /// fill given buffers with this shape's outline's elements + void Outline(OutlineModel::Buffer &out) const; /// Check if given ray would pass though this shape if it were /// transformed with given matrix.