This is new wiki software and old wiki content. It's a work in progress!
Here's the explanation.
Be gentle, report bugs, leave feedback on pages, or just edit them yourself! Thanks!

SDL Wiki


Calculate a minimal rectangle enclosing a set of points.


SDL_bool SDL_EnclosePoints(const SDL_Point * points,
                           int count,
                           const SDL_Rect * clip,
                           SDL_Rect * result);

Function Parameters


an array of SDL_Point structures representing points to be enclosed


the number of structures in the points array


an SDL_Rect used for clipping or NULL to enclose all points


an SDL_Rect structure filled in with the minimal enclosing rectangle

Return Value

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.

CategoryAPI, CategoryRect

[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.