diff options
Diffstat (limited to 'src/o3d/mesh.hpp')
| -rw-r--r-- | src/o3d/mesh.hpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/o3d/mesh.hpp b/src/o3d/mesh.hpp new file mode 100644 index 0000000..2c3a065 --- /dev/null +++ b/src/o3d/mesh.hpp @@ -0,0 +1,24 @@ +#ifndef O3D_MESH_H +#define O3D_MESH_H + +#include <vector> +#include <array> +#include <iterator> +#include <cstddef> +#include "math/vector.hpp" + +namespace engine::o3d { + +using engine::math::Vector3, engine::math::Vector4; + +struct Mesh { + static Mesh plane(float width, float height); + + std::vector<Vector4> vertices; + std::vector<Vector3> normals; + std::vector<std::array<std::array<std::size_t, 2>, 3>> indices; +}; + +} + +#endif // O3D_MESH_H |
