From fe02cf3e4b54c4e2415125ec8d955f21fdeed299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Kapu=C5=9Bci=C5=84ski?= Date: Sun, 6 Jun 2021 17:03:59 +0200 Subject: [PATCH] Added Vertex2D --- src/graphics/core/vertex.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/graphics/core/vertex.h b/src/graphics/core/vertex.h index da338b90..2bf4c5f3 100644 --- a/src/graphics/core/vertex.h +++ b/src/graphics/core/vertex.h @@ -34,6 +34,7 @@ #include #include +#include // Graphics module namespace namespace Gfx @@ -158,6 +159,16 @@ struct VertexTex2 } }; +/** + * \struct Vertex2D + * \brief 2D vertex for interface rendering, contains UV and color + */ +struct Vertex2D +{ + glm::vec2 position; + glm::vec2 uv = { 0.0f, 0.0f }; + glm::u8vec4 color = { 255, 255, 255, 255 }; +}; } // namespace Gfx