|
Flint Engine
Modular C++20 2D game engine powered by SDL3
|
| void Flint::RenderQueue::quad | ( | GPUTexture * | texture, |
| const FloatRect & | dst, | ||
| const FloatRect & | srcUV, | ||
| Color | tint, | ||
| float | rotation = 0.f, | ||
| Vec2f | origin = {0.f, 0.f} ) |
Emit a textured world-space quad into the ordered geometry stream.
Consecutive quads using the same texture and sampler may share one indexed draw run. Geometry is never reordered solely to improve batching.
| texture | Non-owning GPUTexture pointer. Must be valid and contain a usable GPU texture through frame execution. |
| dst | Destination rectangle in world-space units. |
| srcUV | Normalized texture rectangle; values are expected in [0, 1]. |
| tint | RGBA color multiplied with the sampled texture. |
| rotation | Clockwise rotation in radians. |
| origin | Rotation pivot measured from dst position in world-space units. |