VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
vex::UIVertex Struct Reference

Represents a vertex for a UI element. More...

#include <UIVertex.hpp>

Public Attributes

glm::vec2 position
 x, y (pixel coordinates)
glm::vec2 uv
 texture coordinates
glm::vec4 color
 rgba
float texIndex
 texture array index (-1 for solid color)

Detailed Description

Represents a vertex for a UI element.

Definition at line 12 of file UIVertex.hpp.

Member Data Documentation

◆ color

glm::vec4 vex::UIVertex::color

rgba

Definition at line 18 of file UIVertex.hpp.

◆ position

glm::vec2 vex::UIVertex::position

x, y (pixel coordinates)

Definition at line 14 of file UIVertex.hpp.

◆ texIndex

float vex::UIVertex::texIndex

texture array index (-1 for solid color)

Definition at line 20 of file UIVertex.hpp.

◆ uv

glm::vec2 vex::UIVertex::uv

texture coordinates

Definition at line 16 of file UIVertex.hpp.


The documentation for this struct was generated from the following file: