|
Flint Engine
Modular C++20 2D game engine powered by SDL3
|
Vertex structure for the primary geometry quad pipeline. More...
#include <flint/graphics/types/batch-vertex.h>
Collaboration diagram for Flint::BatchVertex:Public Attributes | |
| Vec2f | position |
| World-space 2-D vertex coordinates. | |
| Vec2f | uv |
| Normalized texture coordinates in range [0, 1]. | |
| Color | color |
| RGBA color tint applied to vertex. | |
| Vec2f | shapeParams |
| Dual-purpose SDF parameters ({radius, innerRadius} or {0, 0}). | |
Vertex structure for the primary geometry quad pipeline.
Represents a single vertex in the batched geometry stream. Memory alignment is strictly verified by static assertion to ensure a 28-byte stride matching GPU vertex buffer layout declarations.
Field Layout (28 bytes total):
position: 2 x float32 = 8 bytesuv: 2 x float32 = 8 bytescolor: 4 x uint8 = 4 bytesshapeParams: 2 x float32 = 8 bytesDual Use of shapeParams:
{radius, innerRadius} in world-space units.{0.0f, 0.0f}. Definition at line 28 of file batch-vertex.h.