]> git.sur5r.net Git - fstl/blobdiff - src/mesh.h
New upstream version 0.10.0
[fstl] / src / mesh.h
index 141278139b64d3086234e08c66632233a6bca395..9e2ab0c96c3ce3f8231b63f52964233a11ff86c5 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,7 @@ public:
     float ymax() const { return max(1); }
     float zmax() const { return max(2); }
 
+    int triCount() const;
     bool empty() const;
 
 private: