blob: 1c70ca417f5a217a328fede9bda1665ab8285cb9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef O3D_MESH_H
#define O3D_MESH_H
#include <vector>
#include <array>
#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();
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;
};
}
#endif // O3D_MESH_H
|