Struct BlendMode

D struct that wraps SDL_BlendMode defining how blending should be done when an image is drawn on top of another

struct BlendMode ;

Constructors

NameDescription
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

NameTypeDescription
add immutable(BlendMode)Preexisting built-in dsdl2.BlendModes from SDL_BLENDMODE_* enumeration constants
blend immutable(BlendMode)Preexisting built-in dsdl2.BlendModes from SDL_BLENDMODE_* enumeration constants
mod immutable(BlendMode)Preexisting built-in dsdl2.BlendModes from SDL_BLENDMODE_* enumeration constants
mul immutable(BlendMode)Preexisting built-in dsdl2.BlendModes from SDL_BLENDMODE_* enumeration constants
none immutable(BlendMode)Preexisting built-in dsdl2.BlendModes from SDL_BLENDMODE_* enumeration constants
sdlBlendMode uintInternal SDL_BlendMode enumeration

Methods

NameDescription
toString () Formats the dsdl2.BlendMode into its construction representation: "dsdl2.Color(<sdlBlendMode>)"