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 β€” the SDL_Surface structure 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 current SDL_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 πŸ¦‹


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