aboutsummaryrefslogtreecommitdiff
path: root/vertex.h
diff options
context:
space:
mode:
authorvimene <vincent.menegaux@gmail.com>2023-11-17 13:05:22 +0100
committervimene <vincent.menegaux@gmail.com>2023-11-17 13:05:22 +0100
commit3dc7f970305480bf5c4f60c21416adfc0b8dc958 (patch)
treeb48b3d4cc153f5c88c43194eaf62475e5afe7d00 /vertex.h
downloadengine-3dc7f970305480bf5c4f60c21416adfc0b8dc958.tar.gz
initial commit
Diffstat (limited to 'vertex.h')
-rw-r--r--vertex.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/vertex.h b/vertex.h
new file mode 100644
index 0000000..92b7dcb
--- /dev/null
+++ b/vertex.h
@@ -0,0 +1,25 @@
+#ifndef VERTEX_H
+#define VERTEX_H
+
+#include "math_vector.h"
+#include "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 // VERTEX_H