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

◆ drawText()

void Flint::UICanvas::drawText ( std::string text,
float x,
float y,
float fontSize,
Color color,
std::string fontName = "",
uint16_t weight = 400 )

Enqueues a string draw command record to be processed during the geometry generation pass.

Note
The string text layout is processed out of an optimized instance lookup map to prevent redundant generation passes.