aboutsummaryrefslogtreecommitdiff
path: root/include/mglpp/graphics/Vertex.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mglpp/graphics/Vertex.hpp')
-rw-r--r--include/mglpp/graphics/Vertex.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/mglpp/graphics/Vertex.hpp b/include/mglpp/graphics/Vertex.hpp
new file mode 100644
index 0000000..afa27c1
--- /dev/null
+++ b/include/mglpp/graphics/Vertex.hpp
@@ -0,0 +1,19 @@
+#ifndef MGLPP_VERTEX_HPP
+#define MGLPP_VERTEX_HPP
+
+#include "Color.hpp"
+#include "../system/vec.hpp"
+
+namespace mgl {
+ struct Vertex {
+ Vertex() = default;
+ Vertex(vec2f position, Color color) : position(position), color(color) {}
+ Vertex(vec2f position, vec2f texcoords, Color color) : position(position), texcoords(texcoords), color(color) {}
+
+ vec2f position;
+ vec2f texcoords;
+ Color color;
+ };
+}
+
+#endif /* MGLPP_VERTEX_HPP */