diff options
| author | Andrew Guschin <saintruler@gmail.com> | 2020-11-28 19:13:38 +0400 |
|---|---|---|
| committer | Andrew Guschin <saintruler@gmail.com> | 2020-11-28 19:13:38 +0400 |
| commit | 9ac6d0e563ab6409fcb2a42d8ccff0dcf3008904 (patch) | |
| tree | 5a8ecd709dbc7e56d1abf3e51b6af65544d91d84 /task06/Guschin/Figure.h | |
| parent | 7be113983ed5e8a499ece4bcdf8463c33c9a7b1b (diff) | |
Добавил заготовку 6 задачи
Diffstat (limited to 'task06/Guschin/Figure.h')
| -rw-r--r-- | task06/Guschin/Figure.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/task06/Guschin/Figure.h b/task06/Guschin/Figure.h new file mode 100644 index 0000000..cf2a63e --- /dev/null +++ b/task06/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 |