aboutsummaryrefslogtreecommitdiff
path: root/src/o3d/vertex_data.h
blob: b8ed14c9cf6603fae5d2eb00f6238f9aa39d568e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef O3D_VERTEX_DATA_H
#define O3D_VERTEX_DATA_H

namespace engine::o3d {

class VertexData {
    public:
        static VertexData lerp(const VertexData& vd1, const VertexData& vd2, float b0);
        static VertexData bilerp(const VertexData& vd1, const VertexData& vd2, const VertexData& vd3, float b0, float b1);

        float tx, ty;

        VertexData(float tx, float ty);
};

}

#endif // O3D_VERTEX_DATA_H