SDL_SURFACEHASALTERNATEIMAGES(3)
β¨ SDL_SurfaceHasAlternateImages β¨
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual π this one's a little cutie from <SDL3/SDL_surface.h> and it's about to answer one very specific question for you.
πΈ NAME πΈ
SDL_SurfaceHasAlternateImages β returns whether a surface has alternate versions available, fr fr.
Like... does this surface have a lil wardrobe of other versions hanging in the back? That's the vibe check this function runs. π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_surface.h>
bool SDL_SurfaceHasAlternateImages(SDL_Surface *surface);
look at her. one line. no drama. iconic. β¨
π FUNCTION PARAMETERS π
surfaceβ theSDL_Surfacestructure you want to query. yes queen, this is the thing you're asking about. π
π RETURN VALUE π
Returns true if alternate versions are available, or false otherwise. that's it. that's the whole answer. no hidden lore, no surprises, just a bool doing its best. π«Ά
π§ THREAD SAFETY π§
It is safe to call this function from any thread. no cap! go off, spawn all the threads you want, this one's not gonna snitch on you. π
β AVAILABILITY β
This function is available since SDL 3.2.0. so if you're on something older, sorry bestie, she wasn't born yet π
π SEE ALSO π
SDL_AddSurfaceAlternateImage(3)β go add some alternate images, treat your surface πSDL_RemoveSurfaceAlternateImages(3)β ok now clear them all out, declutter era πSDL_GetSurfaceImages(3)β actually get the images instead of just asking if they exist, main character move π₯
lowkey remember: this function only tells you whether alternates exist. it does not hand them over. that's a different function's job, iykyk. π
and that's the whole page, bestie!! π brought to you by Simple Directmedia Layer, version SDL 3.4.18. now go forth and query your surfaces, you absolute legend πβ¨π¦
π¦ 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