aboutsummaryrefslogtreecommitdiff
path: root/include/Vertex.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-02-14 10:43:26 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-18 15:22:09 +0100
commit83c78e2b5cc9b0cb737ec3785722ae280bd29b65 (patch)
tree8c1f522bc19d4adc7df849fe09f8afc9513f9d65 /include/Vertex.hpp
parent23a37b2cdd8ffde8bb85a4159888bf3a7ec35966 (diff)
Use shader from file..
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