setDrawBlendMode method

bool setDrawBlendMode(
  1. int blendMode
)

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 setDrawBlendMode(int blendMode) {
  return sdlSetRenderDrawBlendMode(this, blendMode);
}