Wiki Page Content

Revision 1 as of 2010-01-11 01:46:17

Clear message

DRAFT

SDL_EnclosePoints

Use this function to calculate a minimal rectangle enclosing a set of points.

Syntax

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

Function Parameters

points

the points to be enclosed

count

the number of points

clip

a pointer to the SDL_Rect to be enclosed

result

the SDL_Rect to be created

Return Value

Returns SDL_TRUE if any points were within the clipping rect. What does it do if there are no points within the clipping rect?

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryRect

Feedback
Please include your contact information if you'd like to receive a reply.
Submit