BlendMode.this

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

  1. this()
  2. this(SDL_BlendMode sdlBlendMode)
  3. this(BlendFactor srcColorFactor, BlendFactor dstColorFactor, BlendOperation colorOperation, BlendFactor srcAlphaFactor, BlendFactor dstAlphaFactor, BlendOperation alphaOperation)
  4. auto none;
  5. auto blend;
  6. auto add;
  7. auto mod;
  8. auto mul;

Parameters

srcColorFactor BlendFactor

multipliers to the color components of the source

dstColorFactor BlendFactor

multipliers to the color components of the destination

colorOperation BlendOperation

operation to perform on the multiplied color components of the source and destination

srcAlphaFactor BlendFactor

multiplier to the alpha component of the source

dstAlphaFactor BlendFactor

multiplier to the color component of the destination

alphaOperation BlendOperation

operation to perform on the multiplied alpha components of the source and destination

Throws

dsdl2.SDLException if impossible to compose the dsdl2.BlendMode

Meta