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

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

class Vertex3 {
    public:
        MathVector3 point;
        VertexData data;

        Vertex3(MathVector3 point, VertexData data);
};

class Vertex4 {
    public:
        MathVector4 point;
        VertexData data;

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

#endif // O3D_VERTEX_H