SDL_SetTextureBlendMode3
Set the blend mode for a texture, used by sdl_rendertexture ().
Usage
#include "SDL3/SDL.h"
bool SDL_SetTextureBlendMode(SDL_Texture *texture, SDL_BlendMode blendMode);
Header file
Defined in SDL3/SDL_render.h
Overview
If the blend mode is not supported, the closest supported mode is chosen and this function returns false.
Function parameters
texture
|
the texture to update. |
|---|---|
blendMode
|
the |
Return value
Returns true on success or false on failure; call
SDL_GetError () for more information.
Thread safety
This function should only be called on the main thread.