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.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/o3d/mesh.h b/src/o3d/mesh.h
index 1c70ca4..acc48b5 100644
--- a/src/o3d/mesh.h
+++ b/src/o3d/mesh.h
@@ -6,19 +6,17 @@
#include <iterator>
#include <cstddef>
#include "math/vector.h"
-#include "o3d/vertex_data.h"
namespace engine::o3d {
using engine::math::Vector3, engine::math::Vector4;
struct Mesh {
- static Mesh plane();
+ static Mesh plane(float width, float height);
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;
+ std::vector<std::array<std::array<std::size_t, 2>, 3>> indices;
};
}