group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
HudVertex Struct Reference

Per-vertex data for all HUD geometry (48 bytes). More...

#include <HudTypes.hpp>

Public Attributes

float position [2]
 Pixel coordinates, origin top-left.
float uv [2]
 Texture coords (atlas UV or local quad pos for shapes).
float color [4]
 RGBA, straight alpha.
float texMode
 0=solid, 1=SDF text, 2=sprite, 3=SDF rounded rect.
float shapeData [3]
 Mode 3 only: [halfWidth, halfHeight, cornerRadius] in pixels.

Detailed Description

Per-vertex data for all HUD geometry (48 bytes).

Member Data Documentation

◆ color

float HudVertex::color[4]

RGBA, straight alpha.

◆ position

float HudVertex::position[2]

Pixel coordinates, origin top-left.

◆ shapeData

float HudVertex::shapeData[3]

Mode 3 only: [halfWidth, halfHeight, cornerRadius] in pixels.

◆ texMode

float HudVertex::texMode

0=solid, 1=SDF text, 2=sprite, 3=SDF rounded rect.

◆ uv

float HudVertex::uv[2]

Texture coords (atlas UV or local quad pos for shapes).


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