|
World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Классы | |
| struct | SDL_Point |
| The structure that defines a point (integer) Подробнее... | |
| struct | SDL_FPoint |
| The structure that defines a point (floating point) Подробнее... | |
| struct | SDL_Rect |
| A rectangle, with the origin at the upper left (integer). Подробнее... | |
| struct | SDL_FRect |
| A rectangle, with the origin at the upper left (floating point). Подробнее... | |
Определения типов | |
| typedef struct SDL_Point | SDL_Point |
| The structure that defines a point (integer) Подробнее... | |
| typedef struct SDL_FPoint | SDL_FPoint |
| The structure that defines a point (floating point) Подробнее... | |
| typedef struct SDL_Rect | SDL_Rect |
| A rectangle, with the origin at the upper left (integer). Подробнее... | |
| typedef struct SDL_FRect | SDL_FRect |
| A rectangle, with the origin at the upper left (floating point). Подробнее... | |
Функции | |
| SDL_FORCE_INLINE SDL_bool | SDL_PointInRect (const SDL_Point *p, const SDL_Rect *r) |
| Returns true if point resides inside a rectangle. Подробнее... | |
| SDL_FORCE_INLINE SDL_bool | SDL_RectEmpty (const SDL_Rect *r) |
| Returns true if the rectangle has no area. Подробнее... | |
| SDL_FORCE_INLINE SDL_bool | SDL_RectEquals (const SDL_Rect *a, const SDL_Rect *b) |
| Returns true if the two rectangles are equal. Подробнее... | |
| DECLSPEC SDL_bool SDLCALL | SDL_HasIntersection (const SDL_Rect *A, const SDL_Rect *B) |
| 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 void SDLCALL | SDL_UnionRect (const SDL_Rect *A, const SDL_Rect *B, SDL_Rect *result) |
| Calculate the union of two rectangles. Подробнее... | |
| 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. Подробнее... | |
| 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. Подробнее... | |
Header file for SDL_rect definition and management functions.
См. определение в файле SDL_rect.h
The structure that defines a point (integer)
| typedef struct SDL_FPoint SDL_FPoint |
The structure that defines a point (floating point)
A rectangle, with the origin at the upper left (integer).
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.
Calculate the union of two rectangles.
| 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.