SDL_GetRectEnclosingPoints3
Calculate a minimal rectangle enclosing a set of points.
Usage
#include "SDL3/SDL.h"
bool SDL_GetRectEnclosingPoints(const SDL_Point *points, int count, const SDL_Rect *clip, SDL_Rect *result);
Header file
Defined in SDL3/SDL_rect.h
Overview
If clip is not NULL then only points inside of the clipping rectangle are considered.
Function parameters
points
|
an array of |
|---|---|
count
|
the number of structures in the |
clip
|
an |
result
|
an |
Return value
Returns true if any points were enclosed or false if all the points were outside of the clipping rectangle.