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

◆ drawTexture()

void Flint::UICanvas::drawTexture ( const GPUTexture & texture,
Rect< float > rect,
Color tint = {255, 255, 255, 255} )

Appends a geometric quad textured draw record down to the dynamic vertex batch structure arrays.

Parameters
textureReference mapping straight to the target asset allocation buffer container.
rectFinal spatial destination pixel bounds on the display grid canvas.
tintGlobal multiplicative color modifier channel adjustments.