aboutsummaryrefslogtreecommitdiff
path: root/src/o3d/mesh.h
blob: 34d1e09387e1b0c1f691c5008b8e4209ac714997 (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 "o3d/vertex.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<Vertex3> pts;
        std::vector<std::array<int, 3>> faces;

        Mesh(std::vector<Vertex3> pts, std::vector<std::array<int, 3>> faces);
};

}

#endif // O3D_MESH_H