BlendMode.this - multiple declarations
Function BlendMode.this
Constructs a dsdl from a vanilla SDL_BlendMode from bindbc-sdl
ref this
(
uint sdlBlendMode
) @safe;
Parameters
| Name | Description |
|---|---|
| sdlBlendMode | the SDL_BlendMode enumeration |
Function BlendMode.this
Composes a custom dsdl based on certain attributes for blending which wraps
SDL_ComposeCustomBlendMode (from SDL 2.0.6)
ref this
(
BlendFactor srcColorFactor,
BlendFactor dstColorFactor,
BlendOperation colorOperation,
BlendFactor srcAlphaFactor,
BlendFactor dstAlphaFactor,
BlendOperation alphaOperation
) @trusted;
Parameters
| Name | Description |
|---|---|
| srcColorFactor | multipliers to the color components of the source |
| dstColorFactor | multipliers to the color components of the destination |
| colorOperation | operation to perform on the multiplied color components of the source and destination |
| srcAlphaFactor | multiplier to the alpha component of the source |
| dstAlphaFactor | multiplier to the color component of the destination |
| alphaOperation | operation to perform on the multiplied alpha components of the source and destination |
Throws
dsdl if impossible to compose the dsdl