Function SDL_SetSurfaceBlendMode

pub unsafe extern "C" fn SDL_SetSurfaceBlendMode(
    surface: *mut SDL_Surface,
    blendMode: u32,
) -> bool
Available on crate feature dep_sdl3 only.
Expand description

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.

§Parameters

§Return value

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

§Availability

This function is available since SDL 3.2.0.

§See also