Class SDL_BlendMode

  • All Implemented Interfaces:
    JnaEnum

    public final class SDL_BlendMode
    extends Object
    implements JnaEnum
    The blend mode used in SDL_RenderCopy() and drawing operations.
    • Field Detail

      • SDL_BLENDMODE_NONE

        public static final int SDL_BLENDMODE_NONE
        no blending
        dstRGBA = srcRGBA
        See Also:
        Constant Field Values
      • SDL_BLENDMODE_BLEND

        public static final int SDL_BLENDMODE_BLEND
        alpha blending
         dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA))
         dstA = srcA + (dstA * (1-srcA))
         
        See Also:
        Constant Field Values
      • SDL_BLENDMODE_ADD

        public static final int SDL_BLENDMODE_ADD
        additive blending
         dstRGB = (srcRGB * srcA) + dstRGB
         dstA = dstA
         
        See Also:
        Constant Field Values
      • SDL_BLENDMODE_MOD

        public static final int SDL_BLENDMODE_MOD
        color modulate
         dstRGB = srcRGB * dstRGB
         dstA = dstA
         
        See Also:
        Constant Field Values
      • SDL_BLENDMODE_MUL

        public static final int SDL_BLENDMODE_MUL
        color multiply
         dstRGB = (srcRGB * dstRGB) + (dstRGB * (1-srcA))
         dstA = (srcA * dstA) + (dstA * (1-srcA))
         
        See Also:
        Constant Field Values