SDL_GetTextureAlphaMod(3)
SDL_GetTextureAlphaMod π β¨
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual π this one lives in SDL3 and it's lowkey a tiny little baddie β it's the getter that tells you what extra alpha is being multiplied into your render copy operations. yes. the additional alpha. the sneaky extra one. π¦
β¨ NAME β¨
SDL_GetTextureAlphaMod β get the additional alpha value multiplied into render copy operations π«Ά
β¨ SYNOPSIS β¨
#include <SDL3/SDL_render.h>
bool SDL_GetTextureAlphaMod(SDL_Texture *texture, Uint8 *alpha);
look at her. two args. so clean. so demure. π
β¨ FUNCTION PARAMETERS β¨
textureβ the texture you're querying, bestie. the one you wanna know about. πalphaβ a pointer that gets filled in with the current alpha value β¨. not the alpha you want, the alpha you have. she writes into it, so hand her somewhere to write. π
β¨ RETURN VALUE β¨
Returns true on success or false on failure π β and if it's a false situation, call SDL_GetError() for more information, because she will NOT elaborate on her own. π
no cap, if you getfalseand just move on without checkingSDL_GetError(), that's on you fr fr π
β¨ THREAD SAFETY β¨
This function should only be called on the main thread. π¨
main thread only. main character energy only. do not be passing this off to your little worker threads, she will not answer. π
β¨ AVAILABILITY β¨
This function is available since SDL 3.2.0. π±
so if you're on something older than that, she simply does not exist yet. rip. β
β¨ SEE ALSO β¨
the whole alpha mod friend group. go say hi. iykyk π
and that's the whole page, bestie!! you ate that πβ¨
this has been a page from the Simple Directmedia Layer manual, SDL 3.4.18 β mwah, go forth and modulate your alphas responsibly ππ¦π
π¦ 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