SDL_SetTextureBlendMode

Set the blend mode for a texture, used by SDL_RenderTexture.

If the blend mode is not supported, the closest supported mode is chosen and this function returns false.

extern (C) nothrow @nogc extern
bool
SDL_SetTextureBlendMode

Parameters

texture SDL_Texture*

The texture to update.

blendMode SDL_BlendMode

The SDL_BlendMode to use for texture blending.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError for more information.

Threadsafety: This function should only be called on the main thread.

See Also

Meta