#pragma section-numbers off #pragma disable-camelcase = SDL_SetTextureBlendMode = Use this function to set the blend mode for a texture, used by [[SDL_RenderCopy]](). <> == Syntax == {{{#!highlight cpp int SDL_SetTextureBlendMode(SDL_Texture* texture, SDL_BlendMode blendMode) }}} == Function Parameters == ||'''texture'''||the texture to update|| ||'''blendMode'''||the [[SDL_BlendMode]] to use for texture blending; see [[#blendMode|Remarks]] for details|| == Return Value == Returns 0 on success or a negative error code on failure; call [[SDL_GetError]]() for more information. == Code Examples == {{{#!highlight cpp You can add your code example here }}} == Remarks == <> '''blendMode''' may be one of the following: <> If the blend mode is not supported, the closest supported mode is chosen and this function returns -1. == Related Functions == .[[SDL_GetTextureBlendMode]] .[[SDL_RenderCopy]] ---- [[CategoryAPI]], [[CategoryRender]]