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