|
Size: 804
Comment: update content (w/ Sam); remove 'draft' note
|
Size: 812
Comment: update content (w/ Sam)
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 26: | Line 26: |
| If the rectangle defined by '''rect''' has an `w` or `h` 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. | If the rectangle defined by '''rect''' has a width or height <= 0 it has no area and this function returns SDL_TRUE. If both width and height are > 0 the rectangle has area and this function returns SDL_FALSE. |
SDL_RectEmpty
Use this function to check whether a rectangle has no area.
Syntax
SDL_bool SDL_RectEmpty(const SDL_Rect* rect)
Function Parameters
rect |
the SDL_Rect to check |
Return Value
Returns SDL_TRUE if the rectangle has no area or SDL_FALSE if it does; see Remarks for details.
Code Examples
You can add your code example here
Remarks
If the rectangle defined by rect has a width or height <= 0 it has no area and this function returns SDL_TRUE. If both width and height are > 0 the rectangle has area and this function returns SDL_FALSE.
