summary refs log tree commit diff
path: root/src/Mesh.hpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-10-14 13:30:15 +0200
committerMel <einebeere@gmail.com>2022-10-14 13:30:15 +0200
commit8ec223cd4ffec8ff883e022db94714a0b814ae58 (patch)
tree65347fb1981ce2bb76ac84e0a82ab215f92a9fe0 /src/Mesh.hpp
parentcb3ddae385c03a8830d39dc37fcd5bf273524d5e (diff)
downloadmeowcraft-8ec223cd4ffec8ff883e022db94714a0b814ae58.tar.zst
meowcraft-8ec223cd4ffec8ff883e022db94714a0b814ae58.zip
Textured Cube
Diffstat (limited to 'src/Mesh.hpp')
-rw-r--r--src/Mesh.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Mesh.hpp b/src/Mesh.hpp
index 50fc629..b601228 100644
--- a/src/Mesh.hpp
+++ b/src/Mesh.hpp
@@ -12,6 +12,9 @@ public:
     Mesh(std::vector<Vector<3>> positions, std::vector<Vector<2>> tex_coords, std::vector<uint32_t> indices)
         : m_positions(std::move(positions)), m_tex_coords(std::move(tex_coords)), m_indices(std::move(indices)) {};
 
+    Mesh(std::vector<Vector<3>> positions, std::vector<Vector<2>> tex_coords)
+        : m_positions(std::move(positions)), m_tex_coords(std::move(tex_coords)), m_indices() {};
+
     float* raw();
     size_t size();