aboutsummaryrefslogtreecommitdiff
path: root/src/o3d/vertex.h
blob: 66d073d33cf60cceb2bffb61b5961ad0013d80c2 (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
#ifndef O3D_VERTEX_H
#define O3D_VERTEX_H

#include "math/math_vector.h"
#include "o3d/vertex_data.h"

namespace engine::o3d {

class Vertex3 {
    public:
        engine::math::MathVector3 point;
        VertexData data;

        Vertex3(engine::math::MathVector3 point, VertexData data);
};

class Vertex4 {
    public:
        engine::math::MathVector4 point;
        VertexData data;

        Vertex4(engine::math::MathVector4 point, VertexData data);
        Vertex4(Vertex3 vertex);
        Vertex3 div_by_w() const;
};

}

#endif // O3D_VERTEX_H