Wiki Page Content

Differences between revisions 5 and 6
Revision 5 as of 2010-09-26 18:01:40
Size: 1751
Editor: SheenaSmith
Comment: temp
Revision 6 as of 2010-09-26 18:09:15
Size: 1675
Editor: SheenaSmith
Comment: temp
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
||'''points'''||a pointer to an array of [[SDL_Points]] to be enclosed|| ||'''points'''||a pointer to an array of [[SDL_Point]] structures to be enclosed||
Line 20: Line 20:
||'''clip'''||an optional rectangle of type [[SDL_Rect]]; see [[#Remarks|Remarks]] for details|| ||'''clip'''||an optional [[SDL_Rect]]; see [[#Remarks|Remarks]] for details||
Line 23: Line 23:
||'''points'''||a pointer to an array of [[SDL_Point]]s to be enclosed||
||'''count'''||the number of points||
||'''clip'''||an optional [[SDL_Rect]]; see [[#Remarks|Remarks]] for details||
||'''result'''||a pointer to an [[SDL_Rect]] to be filled in||
Line 24: Line 28:
||'''points'''||a pointer to an array of points ([[SDL_Points]]) to be enclosed|| ||'''points'''||a pointer to an array of [[SDL_Point]] points to be enclosed||
Line 26: Line 30:
||'''clip'''||an optional rectangle ([[SDL_Rect]]); see [[#Remarks|Remarks]] for details||
||'''result'''||a pointer to a rectangle ([[SDL_Rect]]) to be filled in||
<<BR>>
<<BR>>
||'''points'''||a pointer to an array of [[SDL_Points|points]] to be enclosed||
||'''count'''||the number of points||
||'''clip'''||an optional [[SDL_Rect|rectangle]]; see [[#Remarks|Remarks]] for details||
||'''result'''||a pointer to a [[SDL_Rect|rectangle]] to be filled in||
||'''clip'''||an optional [[SDL_Rect]]; see [[#Remarks|Remarks]] for details||
||'''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_Point structures to be enclosed

count

the number of points

clip

an optional SDL_Rect; see Remarks for details

result

a pointer to an SDL_Rect to be filled in


points

a pointer to an array of SDL_Points to be enclosed

count

the number of points

clip

an optional SDL_Rect; see Remarks for details

result

a pointer to an SDL_Rect to be filled in


points

a pointer to an array of SDL_Point points to be enclosed

count

the number of points

clip

an optional SDL_Rect; see Remarks for details

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