VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
UIVertex.hpp
Go to the documentation of this file.
1
6
7#pragma once
8#include <glm/glm.hpp>
9
10namespace vex {
12 struct UIVertex {
14 glm::vec2 position;
16 glm::vec2 uv;
18 glm::vec4 color;
20 float texIndex;
21 };
22
24 glm::mat4 ortho;
25 };
26}
Push constants for UI rendering.
Definition UIVertex.hpp:23
Represents a vertex for a UI element.
Definition UIVertex.hpp:12
glm::vec2 position
x, y (pixel coordinates)
Definition UIVertex.hpp:14
glm::vec4 color
rgba
Definition UIVertex.hpp:18
float texIndex
texture array index (-1 for solid color)
Definition UIVertex.hpp:20
glm::vec2 uv
texture coordinates
Definition UIVertex.hpp:16