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

◆ getGlobalBounds()

virtual FloatRect Flint::Shape::getGlobalBounds ( ) const
inlinevirtual

Return the axis-aligned bounding rectangle in world space.

The base implementation returns a rect sized to the associated Texture (if any) at the current position. Subclasses should override this with geometry-specific bounds.

Returns
World-space AABB as a FloatRect.

Reimplemented in Flint::CircleShape, and Flint::RectangleShape.

Definition at line 89 of file shape.h.