|
group2 0.1.0
CSE 125 Group 2
|
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. | |
Per-vertex data for all HUD geometry (48 bytes).
| float HudVertex::color[4] |
RGBA, straight alpha.
| float HudVertex::position[2] |
Pixel coordinates, origin top-left.
| float HudVertex::shapeData[3] |
Mode 3 only: [halfWidth, halfHeight, cornerRadius] in pixels.
| float HudVertex::texMode |
0=solid, 1=SDF text, 2=sprite, 3=SDF rounded rect.
| float HudVertex::uv[2] |
Texture coords (atlas UV or local quad pos for shapes).