SDL_SetSurfaceBlendMode

Set the blend mode used for blit operations.

To copy a surface to another surface (or texture) without blending with the existing data, the blendmode of the SOURCE surface should be set to SDL_BLENDMODE_NONE.

extern (C) nothrow @nogc extern
bool
SDL_SetSurfaceBlendMode

Parameters

surface SDL_Surface*

the SDL_Surface structure to update.

blendMode SDL_BlendMode

the SDL_BlendMode to use for blit blending.

Return Value

Type: bool

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

See Also

Meta