aboutsummaryrefslogtreecommitdiff
path: root/src/o3d/mesh.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/o3d/mesh.h')
-rw-r--r--src/o3d/mesh.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/o3d/mesh.h b/src/o3d/mesh.h
index 4aad0e4..1c70ca4 100644
--- a/src/o3d/mesh.h
+++ b/src/o3d/mesh.h
@@ -10,20 +10,15 @@
namespace engine::o3d {
-class Mesh {
- public:
-// static Mesh cube(); // this function should not be in this file
- static Mesh plane(); // this function should not be in this file
+using engine::math::Vector3, engine::math::Vector4;
- std::vector<engine::math::Vector4> vertices;
- std::vector<engine::math::Vector3> normals;
- std::vector<VertexData> vertices_data;
- std::vector<std::array<std::array<std::size_t, 3>, 3>> indices;
+struct Mesh {
+ static Mesh plane();
- Mesh(std::vector<engine::math::Vector4> vertices,
- std::vector<engine::math::Vector3> normals,
- std::vector<VertexData> vertices_data,
- std::vector<std::array<std::array<std::size_t, 3>, 3>> indices);
+ std::vector<Vector4> vertices;
+ std::vector<Vector3> normals;
+ std::vector<VertexData> vertices_data;
+ std::vector<std::array<std::array<std::size_t, 3>, 3>> indices;
};
}