ObjectivelyMVC
Object oriented MVC framework for SDL3 and GNU C
Loading...
Searching...
No Matches
MVC_Vertex Struct Reference

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
 

Detailed Description

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.

Field Documentation

◆ color

SDL_Color MVC_Vertex::color

Definition at line 54 of file Renderer.h.

◆ position

vec2 MVC_Vertex::position

Definition at line 52 of file Renderer.h.

◆ rect

vec4 MVC_Vertex::rect

Definition at line 55 of file Renderer.h.

◆ shape

vec2 MVC_Vertex::shape

Definition at line 56 of file Renderer.h.

◆ uv

vec2 MVC_Vertex::uv

Definition at line 53 of file Renderer.h.


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