sdlSetRenderDrawBlendMode function
Set the blend mode used for drawing operations (Fill and Line).
If the blend mode is not supported, the closest supported mode is chosen.
\param renderer the rendering context. \param blendMode the SDL_BlendMode to use for blending. \returns true on success or false on failure; call SDL_GetError() for more information.
\threadsafety This function should only be called on the main thread.
\since This function is available since SDL 3.1.3.
\sa SDL_GetRenderDrawBlendMode
extern SDL_DECLSPEC bool SDLCALL SDL_SetRenderDrawBlendMode(SDL_Renderer *renderer, SDL_BlendMode blendMode)
Implementation
bool sdlSetRenderDrawBlendMode(Pointer<SdlRenderer> renderer, int blendMode) {
final sdlSetRenderDrawBlendModeLookupFunction = libSdl3.lookupFunction<
Uint8 Function(Pointer<SdlRenderer> renderer, Uint32 blendMode),
int Function(Pointer<SdlRenderer> renderer,
int blendMode)>('SDL_SetRenderDrawBlendMode');
return sdlSetRenderDrawBlendModeLookupFunction(renderer, blendMode) == 1;
}