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

◆ lines()

void Flint::RenderQueue::lines ( std::span< const PrimitiveVertex > verts,
PrimitiveType type )

Emit world-space colored point or line primitives.

Vertex positions are transformed to normalized device coordinates using the camera view associated with this queue.

Parameters
vertsVertices copied into the current frame's line stream.
typeTopology used to interpret the supplied vertices.
Note
Consecutive point or independent-line submissions with matching topology may share a draw run.
Warning
Separate LineStrip submissions intentionally remain separate; combining them would introduce a segment between unrelated strips.