Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches
Flint::PrimitiveVertex Struct Reference

Public user-facing vertex representation for point and line primitives. More...

#include <flint/graphics/types/primitive-types.h>

+ Collaboration diagram for Flint::PrimitiveVertex:

Public Attributes

Vec2f position
 World-space 2-D vertex position.
 
Color color
 RGBA color assigned to vertex.
 

Detailed Description

Public user-facing vertex representation for point and line primitives.

Used by high-level API constructs (such as PrimitiveArray) to specify colored 2-D lines/points. RenderQueue transforms these into internal GPULineVertex units before uploading to GPU VBOs.

See also
GPULineVertex

Definition at line 28 of file primitive-types.h.


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