]> git.sur5r.net Git - fstl/blobdiff - src/mesh.h
Upload 0.9.4-1 to unstable
[fstl] / src / mesh.h
index e8a02f09a2c369b0788b90f7ca0ad97fd7166b18..c4e888bd8a405e91fdc07e3edbc3359aaf36a58f 100644 (file)
@@ -9,7 +9,7 @@
 class Mesh
 {
 public:
-    Mesh(std::vector<GLfloat> vertices, std::vector<GLuint> indices);
+    Mesh(std::vector<GLfloat>&& vertices, std::vector<GLuint>&& 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<GLfloat> vertices;
     std::vector<GLuint> indices;