![]() |
Rendering Engine 0.2.0
Modular Graphics Rendering Engine | v0.2.0
|
Vertex format for 2D UI/Overlay elements. More...
#include <vertex_declarations.hpp>
Public Member Functions | |
| Vertex2D ()=default | |
| Default constructor. | |
| Vertex2D (const glm::vec2 &pos, const glm::vec4 &col, const glm::vec2 &uv) | |
| Construct with position, color, and texture coordinates. | |
Public Attributes | |
| glm::vec2 | position |
| 2D position in screen or world space | |
| glm::vec4 | color |
| Vertex color (RGBA) | |
| glm::vec2 | textureCoordinates |
| UV coordinates for texturing. | |
Vertex format for 2D UI/Overlay elements.
Used for sprites, UI widgets, etc.
Definition at line 45 of file vertex_declarations.hpp.
|
default |
Default constructor.
|
inline |
Construct with position, color, and texture coordinates.
| pos | 2D position |
| col | RGBA color |
| uv | Texture coordinates |
Definition at line 60 of file vertex_declarations.hpp.
| glm::vec4 rendering_engine::Vertex2D::color |
Vertex color (RGBA)
Definition at line 48 of file vertex_declarations.hpp.
| glm::vec2 rendering_engine::Vertex2D::position |
2D position in screen or world space
Definition at line 47 of file vertex_declarations.hpp.
| glm::vec2 rendering_engine::Vertex2D::textureCoordinates |
UV coordinates for texturing.
Definition at line 49 of file vertex_declarations.hpp.