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
10
namespace
vex
{
12
struct
UIVertex
{
14
glm::vec2
position
;
16
glm::vec2
uv
;
18
glm::vec4
color
;
20
float
texIndex
;
21
};
22
23
struct
UIPushConstants
{
24
glm::mat4 ortho;
25
};
26
}
vex
Definition
AssetTypes.hpp:10
vex::UIPushConstants
Push constants for UI rendering.
Definition
UIVertex.hpp:23
vex::UIVertex
Represents a vertex for a UI element.
Definition
UIVertex.hpp:12
vex::UIVertex::position
glm::vec2 position
x, y (pixel coordinates)
Definition
UIVertex.hpp:14
vex::UIVertex::color
glm::vec4 color
rgba
Definition
UIVertex.hpp:18
vex::UIVertex::texIndex
float texIndex
texture array index (-1 for solid color)
Definition
UIVertex.hpp:20
vex::UIVertex::uv
glm::vec2 uv
texture coordinates
Definition
UIVertex.hpp:16
Core
include
components
UI
UIVertex.hpp
Generated by
1.16.1