A rectangle stored using floating point values.
Defined in <SDL3/SDL_rect.h>
typedef struct SDL_FRect
{float x;
float y;
float w;
float h;
} SDL_FRect;
The origin of the coordinate space is in the top-left, with increasing values moving down and right. The properties x
and y
represent the coordinates of the top-left corner of the rectangle.
This struct is available since SDL 3.2.0.