SDL_SurfaceHasRLE(3)
β¨ SDL_SurfaceHasRLE(3) β¨
okay bestie, quick vibe check: this is a page from the SDL3 FUNCTIONS fam, and it's about asking a surface one very specific little question. no cap, it's short, it's sweet, it slays. π
πΈ NAME πΈ
SDL_SurfaceHasRLE β the "are you RLE enabled, or are you not" detector. Returns whether the surface is RLE enabled. periodt. π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_surface.h>
bool SDL_SurfaceHasRLE(SDL_Surface *surface);
π DESCRIPTION π
It just tells you if the surface has RLE turned on. that's the whole plot. π
And here's the part that lowkey saves you: it is safe to pass a NULL surface here β it will just return false. no crash, no drama, no main character meltdown. iconic behavior honestly. πβ¨
π FUNCTION PARAMETERS π
surfaceβ theSDL_Surfacestructure to query. like, the surface you're asking about. that one. π
β RETURN VALUE β
Returns true if the surface is RLE enabled, false otherwise. simple as that, fr fr. π«Ά
π§ THREAD SAFETY π§
It is safe to call this function from any thread. yes bestie, any thread, go wild, it's giving very chill. πΈ
π₯ AVAILABILITY π₯
This function is available since SDL 3.2.0. so if you're on something older, it's not ghosting you, it just doesn't exist yet. π
π SEE ALSO π
SDL_SetSurfaceRLE(3)β the one that actually flips the switch, iykyk. π
and that's the whole page, bestie! short queen behavior. now go check your surfaces. π
this was brought to you by Simple Directmedia Layer, living in SDL 3.4.18, and this very page is SDL_SurfaceHasRLE(3). stay slay, stay RLE-aware. ππ
π¦
π¦ 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