SDL_GetSurfaceBlendMode(3)
π SDL_GetSurfaceBlendMode(3) β SDL3 FUNCTIONS β¨
okay bestie, welcome to the SDL3 functions page for SDL_GetSurfaceBlendMode π yes that's the whole manual name, we're keeping it, it's iconic.
πΈ NAME πΈ
SDL_GetSurfaceBlendMode β get the blend mode used for blit operations.
like, you're asking a surface "hey girl, what's your blend mode rn?" and she tells you. that's the whole vibe. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_surface.h>
bool SDL_GetSurfaceBlendMode(SDL_Surface *surface, SDL_BlendMode *blendMode);
look at her. two params, returns a bool. no cap, she's that simple. π¦
π«Ά FUNCTION PARAMETERS π«Ά
surfaceβ theSDL_Surfacestructure to query. this is the girl you're asking, the one whose blend mode you wanna know about. πblendModeβ a pointer filled in with the currentSDL_BlendMode. so like, you hand her an empty cup and she fills it with the answer. π
π₯ RETURN VALUE π₯
Returns true on success or false on failure. and if she says false?? bestie, call SDL_GetError() for more information β she'll tell you what went wrong, fr fr. π
π THREAD SAFETY π
It is safe to call this function from any thread. yes literally ANY thread. go off, multithreaded queen. π
β AVAILABILITY β
This function is available since SDL 3.2.0. so if you're on anything older, sorry babe, she's not there yet. π
π¦ SEE ALSO π¦
SDL_SetSurfaceBlendMode(3)β the other half of the duo, the one who sets it. they're a matching set, iykyk. π
and that's the page!! mwah π this one came from the Simple Directmedia Layer girlies β SDL 3.4.18 edition β and yeah there's no date on the footer so we're just gonna say it's eternally current, periodt. π§β¨
π¦ 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