diff options
author | vimene <vincent.menegaux@gmail.com> | 2023-11-22 20:32:48 +0100 |
---|---|---|
committer | vimene <vincent.menegaux@gmail.com> | 2023-11-22 20:32:48 +0100 |
commit | 4558a2a704bf75266f7262f8dd41bb1c9b094e1d (patch) | |
tree | 3042dedc701d0458d5ede0a85d554ec174c61a6f /src/o3d/vertex.h | |
parent | 6322e8d7e6e4ddb1c0a0b3a00a1b516d1a84df49 (diff) | |
download | engine-4558a2a704bf75266f7262f8dd41bb1c9b094e1d.tar.gz |
code refactoring
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 |