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

◆ circle()

void Flint::RenderQueue::circle ( GPUTexture * texture,
Vec2f center,
float radius,
Color tint,
float rotation = 0.f,
float innerRadius = 0.f )

Emit a circular or ring-shape primitive.

Generates a bounding quad configured for procedural or textured circle rendering.

Parameters
textureOptional texture mapped across circle bounds. May be nullptr.
centerWorld-space center point of the circle.
radiusOuter radius in world-space units.
tintRGBA color tint applied to the circle.
rotationClockwise rotation in radians.
innerRadiusinnerRadius Inner cutout radius in world-space units. A value of 0.f produces a filled circle; values greater than 0.f produce a hollow ring.