aboutsummaryrefslogtreecommitdiff
path: root/include/Vertex.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/Vertex.hpp')
-rw-r--r--include/Vertex.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/Vertex.hpp b/include/Vertex.hpp
new file mode 100644
index 0000000..ab98d3b
--- /dev/null
+++ b/include/Vertex.hpp
@@ -0,0 +1,28 @@
+#pragma once
+
+#include "types.hpp"
+
+namespace amalgine {
+ class Vertex2D {
+ public:
+ Vertex2D(f32 _x = 0.0f, f32 _y = 0.0f) : x(_x), y(_y)
+ {
+
+ }
+
+ f32 x;
+ f32 y;
+ };
+
+ class Vertex3D {
+ public:
+ Vertex3D(f32 _x = 0.0f, f32 _y = 0.0f, f32 _z = 0.0f) : x(_x), y(_y), z(_z)
+ {
+
+ }
+
+ f32 x;
+ f32 y;
+ f32 z;
+ };
+} \ No newline at end of file