aboutsummaryrefslogtreecommitdiff
path: root/src/o3d/mesh.h
blob: acc48b588b6d3dc9068794a5edd369030b400f18 (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
#ifndef O3D_MESH_H
#define O3D_MESH_H

#include <vector>
#include <array>
#include <iterator>
#include <cstddef>
#include "math/vector.h"

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