summaryrefslogtreecommitdiff
path: root/task04/Guschin/Figure.h
diff options
context:
space:
mode:
authorAndrew Guschin <saintruler@gmail.com>2020-11-09 23:28:49 +0300
committerAndrew Guschin <saintruler@gmail.com>2020-11-09 23:28:49 +0300
commit0408d33694635cdc28db23c9c6388bd916626bde (patch)
tree843f2e61b8f5652ff3b2f19779820c223403ca7d /task04/Guschin/Figure.h
Добавил первые 4 задания
Diffstat (limited to 'task04/Guschin/Figure.h')
-rw-r--r--task04/Guschin/Figure.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/task04/Guschin/Figure.h b/task04/Guschin/Figure.h
new file mode 100644
index 0000000..cf2a63e
--- /dev/null
+++ b/task04/Guschin/Figure.h
@@ -0,0 +1,27 @@
+#pragma once
+#include "Matrix.h"
+#include <vector>
+
+class path
+{
+public:
+ std::vector<vec2> vertices;
+ vec3 color;
+ float thickness;
+
+ path(std::vector<vec2> verts, vec3 col, float thickn)
+ {
+ vertices = verts;
+ color = col;
+ thickness = thickn;
+ }
+};
+
+class model {
+public:
+ std::vector<path> figure;
+ mat3 modelM;
+ model(std::vector<path> fig, mat3 mat) {
+ figure = fig; modelM = mat;
+ }
+}; \ No newline at end of file