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β theSDL_Surfacestructure 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
- 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