|
arsa
2.7
|
#include "SDL_stdinc.h"#include "SDL_error.h"#include "SDL_pixels.h"#include "SDL_rwops.h"#include "begin_code.h"#include "close_code.h"Go to the source code of this file.
Classes | |
| struct | SDL_Point |
| The structure that defines a point (integer) More... | |
| struct | SDL_FPoint |
| The structure that defines a point (floating point) More... | |
| struct | SDL_Rect |
| A rectangle, with the origin at the upper left (integer). More... | |
| struct | SDL_FRect |
| A rectangle, with the origin at the upper left (floating point). More... | |
Typedefs | |
| typedef struct SDL_Point | SDL_Point |
| The structure that defines a point (integer) More... | |
| typedef struct SDL_FPoint | SDL_FPoint |
| The structure that defines a point (floating point) More... | |
| typedef struct SDL_Rect | SDL_Rect |
| A rectangle, with the origin at the upper left (integer). More... | |
| typedef struct SDL_FRect | SDL_FRect |
| A rectangle, with the origin at the upper left (floating point). More... | |
Header file for SDL_rect definition and management functions.
Definition in file SDL_rect.h.
| typedef struct SDL_FPoint SDL_FPoint |
The structure that defines a point (floating point)
The structure that defines a point (integer)
A rectangle, with the origin at the upper left (integer).
| DECLSPEC SDL_bool SDLCALL SDL_EnclosePoints | ( | const SDL_Point * | points, |
| int | count, | ||
| const SDL_Rect * | clip, | ||
| SDL_Rect * | result | ||
| ) |
Calculate a minimal rectangle enclosing a set of points.
Determine whether two rectangles intersect.
| DECLSPEC SDL_bool SDLCALL SDL_IntersectRect | ( | const SDL_Rect * | A, |
| const SDL_Rect * | B, | ||
| SDL_Rect * | result | ||
| ) |
Calculate the intersection of two rectangles.
| DECLSPEC SDL_bool SDLCALL SDL_IntersectRectAndLine | ( | const SDL_Rect * | rect, |
| int * | X1, | ||
| int * | Y1, | ||
| int * | X2, | ||
| int * | Y2 | ||
| ) |
Calculate the intersection of a rectangle and line segment.
Returns true if point resides inside a rectangle.
Definition at line 99 of file SDL_rect.h.
| SDL_FORCE_INLINE SDL_bool SDL_RectEmpty | ( | const SDL_Rect * | r | ) |
Returns true if the rectangle has no area.
Definition at line 108 of file SDL_rect.h.
Returns true if the two rectangles are equal.
Definition at line 116 of file SDL_rect.h.
1.8.15