sdlSetSurfaceBlendMode function
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
.
\param surface the SDL_Surface structure to update \param blendMode the SDL_BlendMode to use for blit blending \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
\since This function is available since SDL 2.0.0.
\sa SDL_GetSurfaceBlendMode
extern DECLSPEC int SDLCALL SDL_SetSurfaceBlendMode(SDL_Surface * surface, SDL_BlendMode blendMode)
Implementation
int sdlSetSurfaceBlendMode(Pointer<SdlSurface> surface, int blendMode) {
final sdlSetSurfaceBlendModeLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlSurface> surface, Int32 blendMode),
int Function(Pointer<SdlSurface> surface,
int blendMode)>('SDL_SetSurfaceBlendMode');
return sdlSetSurfaceBlendModeLookupFunction(surface, blendMode);
}