diff options
Diffstat (limited to 'src/o3d/vertex.h')
-rw-r--r-- | src/o3d/vertex.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/o3d/vertex.h b/src/o3d/vertex.h new file mode 100644 index 0000000..27ca56a --- /dev/null +++ b/src/o3d/vertex.h @@ -0,0 +1,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 |