Function sdl2_sys::SDL_EnclosePoints
source ยท pub unsafe extern "C" fn SDL_EnclosePoints(
points: *const SDL_Point,
count: c_int,
clip: *const SDL_Rect,
result: *mut SDL_Rect,
) -> SDL_bool
Expand description
Calculate a minimal rectangle enclosing a set of points.
If clip
is not NULL then only points inside of the clipping rectangle are
considered.
\param points an array of SDL_Point structures representing points to be
enclosed
\param count the number of structures in the points
array
\param clip an SDL_Rect used for clipping or NULL to enclose all points
\param result an SDL_Rect structure filled in with the minimal enclosing
rectangle
\returns SDL_TRUE if any points were enclosed or SDL_FALSE if all the
points were outside of the clipping rectangle.
\since This function is available since SDL 2.0.0.