X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fmesh.h;h=c4e888bd8a405e91fdc07e3edbc3359aaf36a58f;hb=2e049875e7c35d10bd9724090abc2fe2ed5ac257;hp=e8a02f09a2c369b0788b90f7ca0ad97fd7166b18;hpb=967d178c4343c689c728571bb10d5c94ab8d9d13;p=fstl diff --git a/src/mesh.h b/src/mesh.h index e8a02f0..c4e888b 100644 --- a/src/mesh.h +++ b/src/mesh.h @@ -9,7 +9,7 @@ class Mesh { public: - Mesh(std::vector vertices, std::vector indices); + Mesh(std::vector&& vertices, std::vector&& indices); float min(size_t start) const; float max(size_t start) const; @@ -21,6 +21,8 @@ public: float ymax() const { return max(1); } float zmax() const { return max(2); } + bool empty() const; + private: std::vector vertices; std::vector indices;