Calculate a minimal rectangle enclosing a set of points.
Defined in SDL_rect.h
const SDL_Point * points,
SDL_bool SDL_EnclosePoints(int count,
const SDL_Rect * clip,
SDL_Rect * result);
const SDL_Point * | points | an array of SDL_Point structures representing points to be enclosed. |
int | count | the number of structures in the points array. |
const SDL_Rect * | clip | an SDL_Rect used for clipping or NULL to enclose all points. |
SDL_Rect * | result | an SDL_Rect structure filled in with the minimal enclosing rectangle. |
(SDL_bool) Returns SDL_TRUE if any points were enclosed or SDL_FALSE if all the points were outside of the clipping rectangle.
If clip
is not NULL then only points inside of the clipping rectangle are considered.
This function is available since SDL 2.0.0.