summaryrefslogtreecommitdiff
path: root/src/mesh.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh.hpp')
-rw-r--r--src/mesh.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesh.hpp b/src/mesh.hpp
new file mode 100644
index 0000000..55b414a
--- /dev/null
+++ b/src/mesh.hpp
@@ -0,0 +1,11 @@
+#include "mesh.hpp"
+#include "scene.hpp"
+#include <tuple>
+
+void Mesh::render(std::shared_ptr<Scene> scene_context) {
+ for (const TRIANGLE triangle : m_triangles) {
+ VECTOR v0 = m_vertices[std::get<0>(triangle.vertex_indices)];
+ VECTOR v1 = m_vertices[std::get<1>(triangle.vertex_indices)];
+ VECTOR v2 = m_vertices[std::get<2>(triangle.vertex_indices)];
+ }
+}