Struct BlendMode
D struct that wraps SDL_BlendMode
defining how blending should be done when an image is drawn on top of
another
Constructors
Name | Description |
this
(sdlBlendMode)
|
Constructs a dsdl2.BlendMode from a vanilla SDL_BlendMode from bindbc-sdl
|
this
(srcColorFactor, dstColorFactor, colorOperation, srcAlphaFactor, dstAlphaFactor, alphaOperation)
|
Composes a custom dsdl2.BlendMode based on certain attributes for blending which wraps
SDL_ComposeCustomBlendMode (from SDL 2.0.6)
|
Fields
Name | Type | Description |
add
|
immutable(BlendMode) | Preexisting built-in dsdl2.BlendMode s from SDL_BLENDMODE_* enumeration constants
|
blend
|
immutable(BlendMode) | Preexisting built-in dsdl2.BlendMode s from SDL_BLENDMODE_* enumeration constants
|
mod
|
immutable(BlendMode) | Preexisting built-in dsdl2.BlendMode s from SDL_BLENDMODE_* enumeration constants
|
mul
|
immutable(BlendMode) | Preexisting built-in dsdl2.BlendMode s from SDL_BLENDMODE_* enumeration constants
|
none
|
immutable(BlendMode) | Preexisting built-in dsdl2.BlendMode s from SDL_BLENDMODE_* enumeration constants
|
sdlBlendMode
|
uint | Internal SDL_BlendMode enumeration
|
Methods
Name | Description |
toString
()
|
Formats the dsdl2.BlendMode into its construction representation: "dsdl2.Color(<sdlBlendMode>)"
|