summary refs log tree commit diff
path: root/src/Mesh.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mesh.hpp')
-rw-r--r--src/Mesh.hpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/Mesh.hpp b/src/Mesh.hpp
index a6d80d3..a9dadb7 100644
--- a/src/Mesh.hpp
+++ b/src/Mesh.hpp
@@ -9,12 +9,19 @@ namespace MC {
 
 class Mesh {
 public:
-    Mesh(std::vector<Vector<3>> positions) : m_positions(std::move(positions)) {};
+    Mesh(std::vector<Vector<3>> positions, std::vector<uint32_t> indices)
+        : m_positions(std::move(positions)), m_indices(std::move(indices)) {};
+
+    float* raw();
+    size_t size();
+
+    uint32_t* raw_indices();
+    size_t indices_size();
 
-    std::size_t size();
-    float* flat();
 private:
     std::vector<Vector<3>> m_positions;
+    std::vector<uint32_t> m_indices;
+
 };
 
 }
\ No newline at end of file