Added Vertex2D

dev
Tomasz Kapuściński 2021-06-06 17:03:59 +02:00
parent 5e7fb5010f
commit fe02cf3e4b
1 changed files with 11 additions and 0 deletions

View File

@ -34,6 +34,7 @@
#include <sstream>
#include <cstdint>
#include <glm/glm.hpp>
// 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