|
TinyGPU
|
Represents a rectangular area on the screen or surface. More...
#include <SpriteInfo.h>
Static Public Member Functions | |
| static Rect | intersect (const Rect &first, const Rect &second) |
| Returns the intersection rectangle of two rectangles. | |
Public Attributes | |
| size_t | x = 0 |
| size_t | y = 0 |
| size_t | width = 0 |
| size_t | height = 0 |
Represents a rectangular area on the screen or surface.
The Rect structure is used to define a rectangle by its top-left corner coordinates (x, y) and its dimensions (width, height). It is commonly used for sprite placement, collision detection, and drawing operations.
Returns the intersection rectangle of two rectangles.
| size_t height = 0 |
| size_t width = 0 |
| size_t x = 0 |
| size_t y = 0 |