SDL_GetTextureBlendMode(3)

πŸ’– SDL_GetTextureBlendMode πŸ’–

okay bestie, welcome to the SDL_GetTextureBlendMode(3) page, filed under SDL3 FUNCTIONS β€” yes that's the manual name, we're fancy now πŸ’…


✨ NAME ✨

SDL_GetTextureBlendMode β€” bestie, this one tells you which blend mode your texture is using for copy operations. it's the little peek-behind-the-curtain function πŸŽ€


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_render.h>

bool SDL_GetTextureBlendMode(SDL_Texture *texture, SDL_BlendMode *blendMode);

πŸ¦‹ FUNCTION PARAMETERS πŸ¦‹

  • texture β€” the texture you're interrogating, respectfully πŸ”
  • blendMode β€” a pointer that gets filled in with the current SDL_BlendMode. yes, she writes into your pointer. that's the whole vibe.

πŸ’œ RETURN VALUE πŸ’œ

Returns true on success or false on failure, and if it fails you gotta call SDL_GetError() for more info, no cap 😭. read the error, bestie, it's literally telling you what's wrong.


🧚 THREAD SAFETY 🧚

main thread only, periodt. do NOT call this from a worker thread, she will not survive it 🫢


πŸ‘‘ AVAILABILITY πŸ‘‘

this function has been available since SDL 3.2.0 β€” she's a newer-era icon, respect her timeline ⭐


🌈 SEE ALSO 🌈


Simple Directmedia Layer πŸ¦‹ version SDL 3.4.18 πŸŽ€ that's the source and the version, and the header/footer date vibes β€” anyway, mwah, go blend something gorgeous, ily, bye πŸ’…βœ¨

πŸ“¦ where this page comes from