BlendMode.this - multiple declarations

Function BlendMode.this

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

ref this (
  uint sdlBlendMode
) @safe;

Parameters

NameDescription
sdlBlendMode the SDL_BlendMode enumeration

Function BlendMode.this

Composes a custom dsdl2.BlendMode 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

NameDescription
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

dsdl2.SDLException if impossible to compose the dsdl2.BlendMode