A structure that contains the definition of a rectangle, with the origin at the upper left.
float |
x |
the x location of the rectangle's upper left corner |
float |
y |
the y location of the rectangle's upper left corner |
float |
w |
the width of the rectangle |
float |
h |
the height of the rectangle |
This function is available since SDL 2.0.10.
SDL_FRect rect;
0.0;
rect.x = 0.0;
rect.y = 32.0;
rect.w = 32.0; rect.h =
An SDL_FRect defines a rectangular area of the screen.