|
Size: 1675
Comment: temp
|
Size: 1198
Comment: update content (w/ Sam); remove 'draft' note
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 18: | Line 18: |
| ||'''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|Remarks]] for details|| ||'''result'''||a pointer to an [[SDL_Rect]] to be filled in|| <<BR>> ||'''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|| <<BR>> ||'''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|Remarks]] for details|| |
||'''points'''||a pointer to an array of [[SDL_Point]] structures representing points to be enclosed|| ||'''count'''||the number of structures in the '''points''' array|| ||'''clip'''||an [[SDL_Rect]] used for clipping or NULL to enclose all points; see [[#Remarks|Remarks]] for details|| |
| Line 35: | Line 25: |
| Returns SDL_TRUE if any points were within the clipping rect. <<Color2(green,What does it do if there are no points within the clipping rect?)>> |
Returns SDL_TRUE if any points were enclosed or SDL_FALSE if all the points were outside of the clipping rectangle. |
| Line 45: | Line 33: |
| ''You can add useful comments here'' == Related Functions == .[[SDL_OtherFunction]] |
If '''clip''' is not NULL then only points inside of the clipping rectangle are considered. |
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 representing points to be enclosed |
count |
the number of structures in the points array |
clip |
an SDL_Rect used for clipping or NULL to enclose all points; see Remarks for details |
result |
a pointer to an SDL_Rect to be filled in |
Return Value
Returns SDL_TRUE if any points were enclosed or SDL_FALSE if all the points were outside of the clipping rectangle.
Code Examples
You can add your code example here
Remarks
If clip is not NULL then only points inside of the clipping rectangle are considered.
