aboutsummaryrefslogtreecommitdiff
path: root/src/o3d/mesh.h
blob: 4aad0e455453373f4390045ceb6eb809acbc51d8 (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
27
28
29
30
31
#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 {

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

        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;

        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);
};

}

#endif // O3D_MESH_H