summaryrefslogtreecommitdiff
path: root/inc/mesh.hpp
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-11-24 18:19:42 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-11-24 18:19:42 -0700
commitebc517c800a90f6f0ed157e5c3bd7c3bd18165b5 (patch)
tree781ab3e1aca5444fc0cdec56cb8c5b479d59c492 /inc/mesh.hpp
parent9e35115be8950e2891232027aaf4bef7be44ace2 (diff)
downloadgbarubik-ebc517c800a90f6f0ed157e5c3bd7c3bd18165b5.tar.gz
gbarubik-ebc517c800a90f6f0ed157e5c3bd7c3bd18165b5.zip
base 3d uml setup
Diffstat (limited to 'inc/mesh.hpp')
-rw-r--r--inc/mesh.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/inc/mesh.hpp b/inc/mesh.hpp
new file mode 100644
index 0000000..db465fb
--- /dev/null
+++ b/inc/mesh.hpp
@@ -0,0 +1,22 @@
+#ifndef MESH_HPP
+#define MESH_HPP
+
+#include "vector.hpp"
+#include <memory>
+#include <tonc.h>
+#include <tuple>
+
+class Scene;
+
+typedef struct TRIANGLE {
+ std::tuple<std::uint8_t, std::uint8_t, std::uint8_t> vertex_indices;
+ std::uint8_t color_idx;
+} TRIANGLE;
+
+class Mesh {
+protected:
+ usu::vector<VECTOR> m_vertices;
+ usu::vector<TRIANGLE> m_triangles;
+};
+
+#endif // MESH_HPP