diff options
Diffstat (limited to 'src/o3d/mesh.h')
-rw-r--r-- | src/o3d/mesh.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/o3d/mesh.h b/src/o3d/mesh.h new file mode 100644 index 0000000..579c8b2 --- /dev/null +++ b/src/o3d/mesh.h @@ -0,0 +1,23 @@ +#ifndef O3D_MESH_H +#define O3D_MESH_H + +#include <vector> +#include <array> +#include <iterator> +#include "o3d/vertex.h" + +namespace engine::o3d { + +class Mesh { + public: + static Mesh cube(); // this function should not be in this file + + std::vector<Vertex3> pts; + std::vector<std::array<int, 3>> faces; + + Mesh(std::vector<Vertex3> pts, std::vector<std::array<int, 3>> faces); +}; + +} + +#endif // O3D_MESH_H |