|
ObjectivelyMVC
Object oriented MVC framework for SDL3 and GNU C
|
Interleaved position + texcoord + color + rounded rect shape vertex for GPU upload. More...
#include <Renderer.h>
Data Fields | |
| SDL_Color | color |
| vec2 | position |
| vec4 | rect |
| vec2 | shape |
| vec2 | uv |
Interleaved position + texcoord + color + rounded rect shape vertex for GPU upload.
rect holds the rounded rectangle's center (xy) and half extent (zw), and shape its corner radius (x) and stroke width (y, 0 for filled), all in logical coordinates. Leave both zeroed for plain quads; the shader skips the SDF when rect.z == 0.
Definition at line 51 of file Renderer.h.
| SDL_Color MVC_Vertex::color |
Definition at line 54 of file Renderer.h.
| vec2 MVC_Vertex::position |
Definition at line 52 of file Renderer.h.
| vec4 MVC_Vertex::rect |
Definition at line 55 of file Renderer.h.
| vec2 MVC_Vertex::shape |
Definition at line 56 of file Renderer.h.
| vec2 MVC_Vertex::uv |
Definition at line 53 of file Renderer.h.