SDL_GetRenderDrawBlendMode(3)
π SDL_GetRenderDrawBlendMode π
okay so bestie, welcome to the SDL3 functions corner of the man pages, and today's main character is SDL_GetRenderDrawBlendMode β literally the function that tells you how your renderer is blending stuff when it draws. no cap.
β¨ NAME β¨
SDL_GetRenderDrawBlendMode β Get the blend mode used for drawing operations.
like, it's a getter. it gets. it's giving "just tell me the vibe" energy and honestly? we love that for it. π«Ά
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_render.h>
bool SDL_GetRenderDrawBlendMode(SDL_Renderer *renderer, SDL_BlendMode *blendMode);
π FUNCTION PARAMETERS π
rendererβ the rendering context. yes queen, yourSDL_Renderer, the one doing all the actual drawing. hand it over. πblendModeβ a pointer that gets filled in with the currentSDL_BlendMode. so you pass in the address of your variable and it writes the answer in there for you. it's giving "out-param" excellence, iykyk. β¨
π RETURN VALUE π
Returns true on success or false on failure. and if it fails? call SDL_GetError() for more information, bestie. that's where the tea is. π
π¦ THREAD SAFETY π¦
This function should only be called on the main thread. fr fr. do not be out here calling it from your worker threads, that is not the move. π«
β AVAILABILITY β
This function is available since SDL 3.2.0. so if you're on something older... yeah no, it's not there yet, sorry babe. π
π SEE ALSO π
SDL_SetRenderDrawBlendMode(3)β the setter! the other half of the duo! the iconic pair! go set it, then come back and get it. it's a whole relationship. π
ngl, this is the chillest function ever: you give it a renderer, it gives you the blend mode. no drama, no surprises. periodt. π
mwah π that's the whole page! this lil slice of the Simple Directmedia Layer docs comes from SDL 3.4.18, and the page itself is SDL_GetRenderDrawBlendMode(3). go forth and query your blend modes, bestie β you're gonna slay. πΈπβ¨
π¦ 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