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 β€” the SDL_Surface structure 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