Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2010-09-23 20:03:45
Size: 1123
Editor: SheenaSmith
Comment: minor change
Revision 3 as of 2010-09-26 17:50:36
Size: 1127
Editor: SheenaSmith
Comment: temp
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 19: Line 18:
||'''points'''||the points to be enclosed|| ||'''points'''||a pointer to an array of [[SDL_Points]] to be enclosed||
Line 21: Line 20:
||'''clip'''||a pointer to the [[SDL_Rect]] to be enclosed||
||'''result'''||the [[SDL_Rect]] to be created||
||'''clip'''||an optional rectangle ([[SDL_Rect]]); see [[#Remarks|Remarks]]||
||'''result'''||a pointer to an [[SDL_Rect]] to be filled in||

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

a pointer to an array of SDL_Points to be enclosed

count

the number of points

clip

an optional rectangle (SDL_Rect); see Remarks

result

a pointer to an SDL_Rect to be filled in

Return Value

Returns SDL_TRUE if any points were within the clipping rect.

green

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryRect

None: SDL_EnclosePoints (last edited 2010-10-16 05:58:42 by SheenaSmith)

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