SDL_GetSurfaceAlphaMod(3)

✨ SDL_GetSurfaceAlphaMod ✨

okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we're talking about SDL_GetSurfaceAlphaMod πŸ’…


🌸 NAME 🌸

SDL_GetSurfaceAlphaMod β€” bestie, this is the one that gets you the additional alpha value that's being used in blit operations. no cap, that's literally its whole job 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_surface.h>

bool SDL_GetSurfaceAlphaMod(SDL_Surface *surface, Uint8 *alpha);

πŸ¦‹ FUNCTION PARAMETERS πŸ¦‹

  • surface β€” the SDL_Surface structure you wanna query, queen πŸ‘‘
  • alpha β€” a pointer that gets filled in with the current alpha value ✨

πŸ’– RETURN VALUE πŸ’–

It returns true when it slays (success), and false when it does not (failure) 😭 β€” and if it fails, you go call SDL_GetError() for more info, fr fr.


🧚 THREAD SAFETY 🧚

It is safe to call this function from any thread. main character energy in every thread, periodt πŸ’…


⭐ AVAILABILITY ⭐

This function has been available since SDL 3.2.0 β€” so if you're on something older, sorry babe, it's not giving 🌈


πŸ‘‘ SEE ALSO πŸ‘‘


Simple Directmedia Layer πŸ¦‹ SDL 3.4.18 πŸŽ€ SDL_GetSurfaceAlphaMod(3)

and that's the whole page, bestie β€” mwah, go get that alpha value πŸ’–βœ¨πŸ«Ά

πŸ“¦ where this page comes from