aboutsummaryrefslogtreecommitdiff
path: root/include/Triangle.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/Triangle.hpp
parent23a37b2cdd8ffde8bb85a4159888bf3a7ec35966 (diff)
Use shader from file..
Diffstat (limited to 'include/Triangle.hpp')
-rw-r--r--include/Triangle.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/Triangle.hpp b/include/Triangle.hpp
new file mode 100644
index 0000000..5caff05
--- /dev/null
+++ b/include/Triangle.hpp
@@ -0,0 +1,23 @@
+#pragma once
+
+#include "Vertex.hpp"
+
+namespace amalgine {
+ class Triangle2D {
+ public:
+ Triangle2D(const Vertex2D &_p1, const Vertex2D &_p2, const Vertex2D &_p3) : p1(_p1), p2(_p2), p3(_p3) {}
+
+ Vertex2D p1;
+ Vertex2D p2;
+ Vertex2D p3;
+ };
+
+ class Triangle3D {
+ public:
+ Triangle3D(const Vertex3D &_p1, const Vertex3D &_p2, const Vertex3D &_p3) : p1(_p1), p2(_p2), p3(_p3) {}
+
+ Vertex3D p1;
+ Vertex3D p2;
+ Vertex3D p3;
+ };
+}