BlendMode

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

Constructors

this
this()
Undocumented in source.
this
this(SDL_BlendMode sdlBlendMode)

Constructs a dsdl2.BlendMode from a vanilla SDL_BlendMode from bindbc-sdl

this
this(BlendFactor srcColorFactor, BlendFactor dstColorFactor, BlendOperation colorOperation, BlendFactor srcAlphaFactor, BlendFactor dstAlphaFactor, BlendOperation alphaOperation)

Composes a custom dsdl2.BlendMode based on certain attributes for blending which wraps SDL_ComposeCustomBlendMode (from SDL 2.0.6)

Members

Functions

toString
string toString()

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

Static variables

add
auto add;
blend
auto blend;
mod
auto mod;
mul
auto mul;

Preexisting built-in dsdl2.BlendModes from SDL_BLENDMODE_* enumeration constants

none
auto none;

Preexisting built-in dsdl2.BlendModes from SDL_BLENDMODE_* enumeration constants

Variables

sdlBlendMode
SDL_BlendMode sdlBlendMode;

Internal SDL_BlendMode enumeration

Meta