This is new wiki software and old wiki content. It's a work in progress!
Here's the explanation.
Be gentle, report bugs, leave feedback on pages, or just edit them yourself! Thanks!

SDL Wiki

SDL_RectEmpty

Use this function to check whether a rectangle has no area.

Syntax

SDL_bool SDL_RectEmpty(const SDL_Rect* r)

Function Parameters

r

the SDL_Rect structure representing the rectangle to check

Return Value

Returns SDL_TRUE if the rectangle has no area or SDL_FALSE if it does; see Remarks for details.

Remarks

If the rectangle defined by r is NULL or 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.


CategoryAPI, CategoryRect


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.