|
⇤ ← Revision 1 as of 2010-09-27 06:17:41
Size: 1514
Comment: create page, add content (9/25 changeset 4895)
|
Size: 1656
Comment: minor change
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 7: | Line 7: |
<<Color2(green,Is this one of those macros that should be labeled as a macro? ie: the above would read "Use this macro to..." instead.)>> |
DRAFT |
SDL_RectEmpty
Use this function to report if a rectangle has no area.
green
Contents
Syntax
SDL_RectEmpty(X)
green
SDL_bool SDL_RectEmpty(SDL_Rect* rect)
Function Parameters
X |
(((X)->w <= 0) |
((X)->h <= 0)) |
green
Return Value
Returns SDL_TRUE if the rectangle has no area or SDL_FALSE if it does; see [[#Remarks|Remarks]] for details.
Code Examples
You can add your code example here
Remarks
You can add useful comments here
green
If the rectangle defined/described by rect has an x or y value <=0 it has no area and this function returns SDL_TRUE. If both values are >0 the rectangle has area and this function returns SDL_FALSE.
