SDL_REMOVESURFACEALTERNATEIMAGES(3)
π NAME π
SDL_RemoveSurfaceAlternateImages β bestie, this one clears out every single alternate version of a surface. like, all of them. gone. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_surface.h>
void SDL_RemoveSurfaceAlternateImages(SDL_Surface *surface);
π¦ DESCRIPTION π¦
okay so picture this: your surface has a whole lil entourage of alternate versions hanging around. this function removes a reference from all the alternative versions, and if that was the last reference to any of them? yeah, those get destroyed. no cap. π«Ά
it's giving "clean up your contacts list" energy fr fr.
π FUNCTION PARAMETERS π
surfaceβ theSDL_Surfacestructure you wanna update. that's the one, bestie. π
π THREAD SAFETY π
you can call this from different threads β as long as each thread is working with a different surface. so like, everyone gets their own, no fighting, we don't do that here. π
β AVAILABILITY β
this one's been around since SDL 3.2.0. so if you're on anything older... not me being the bearer of bad news π
π SEE ALSO π
okay that's the whole page, you ate that π this lil manual moment comes to you from Simple Directmedia Layer, living its SDL 3.4.18 era β mwah, go forth and remove those alternates, queen πβ¨π
π¦ 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