SDL_SetSurfaceAlphaMod

Set an additional alpha value used in blit operations.

When this surface is blitted, during the blit operation the source alpha value is modulated by this alpha value according to the following formula:

srcA = srcA* (alpha / 255)

extern (C) nothrow @nogc extern
bool
SDL_SetSurfaceAlphaMod

Parameters

surface SDL_Surface*

the SDL_Surface structure to update.

alpha Uint8

the alpha value multiplied into blit operations.

Return Value

Type: bool

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

See Also

Meta