SDL_RectEmptyFloat(3)
okay so bestie, welcome to SDL_RectEmptyFloat(3) β it's giving SDL3 FUNCTIONS energy, and it's here to answer one very important question: does this floating point rectangle take up literally no space? π
β¨
π NAME π
SDL_RectEmptyFloat β determine whether a floating point rectangle takes no space. π¦
π SYNOPSIS π
#include <SDL3/SDL_rect.h>
SDL_FORCE_INLINE bool SDL_RectEmptyFloat(const SDL_FRect *r);
π DESCRIPTION π
okay so for this function, a rectangle is considered βemptyβ if r is NULL, or if r's width and/or height are < 0.0f. that's the whole vibe check, bestie. π
heads up: this is a forced-inline function in a header, and not a public API function available in the SDL library. which is to say, the code is embedded in the calling program, and the linker and dynamic loader will not be able to find this function inside SDL itself. π
π«Ά FUNCTION PARAMETERS π«Ά
rβ the rectangle to test. that's the only parameter, periodt. πΈ
β RETURN VALUE β
Returns true if the rectangle is βemptyβ, false otherwise. no in-between, no maybe, just bool energy. β¨
π§΅ THREAD SAFETY π§΅
It is safe to call this function from any thread. fr fr, any thread. π«Ά
π AVAILABILITY π
This function is available since SDL 3.2.0. so if you're on SDL 3.2.0 or later, you're slaying. π
mwah π this page was brought to you by Simple Directmedia Layer, SDL 3.4.18, and the manual page SDL_RectEmptyFloat(3). that's the whole footer, bestie, and yes it ate. ππ¦
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms