Root/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | #region License /* FNA - XNA4 Reimplementation for Desktop Platforms * Copyright 2009-2016 Ethan Lee and the MonoGame Team * * Released under the Microsoft Public License. * See LICENSE for details. */ #endregion namespace Microsoft.Xna.Framework.Graphics { /// <summary> /// Defines a blend mode. /// </summary> public enum Blend { /// <summary> /// Each component of the color is multiplied by {1, 1, 1, 1}. /// </summary> One, /// <summary> /// Each component of the color is multiplied by {0, 0, 0, 0}. /// </summary> Zero, /// <summary> /// Each component of the color is multiplied by the source color. /// {Rs, Gs, Bs, As}, where Rs, Gs, Bs, As are color source values. /// </summary> SourceColor, /// <summary> /// Each component of the color is multiplied by the inverse of the source color. /// {1 - Rs, 1 - Gs, 1 - Bs, 1 - As}, where Rs, Gs, Bs, As are color source values. /// </summary> InverseSourceColor, /// <summary> /// Each component of the color is multiplied by the alpha value of the source. /// {As, As, As, As}, where As is the source alpha value. /// </summary> SourceAlpha, /// <summary> /// Each component of the color is multiplied by the inverse of the alpha value of the source. /// {1 - As, 1 - As, 1 - As, 1 - As}, where As is the source alpha value. /// </summary> InverseSourceAlpha, /// <summary> /// Each component color is multiplied by the destination color. /// {Rd, Gd, Bd, Ad}, where Rd, Gd, Bd, Ad are color destination values. /// </summary> DestinationColor, /// <summary> /// Each component of the color is multiplied by the inversed destination color. /// {1 - Rd, 1 - Gd, 1 - Bd, 1 - Ad}, where Rd, Gd, Bd, Ad are color destination values. /// </summary> InverseDestinationColor, /// <summary> /// Each component of the color is multiplied by the alpha value of the destination. /// {Ad, Ad, Ad, Ad}, where Ad is the destination alpha value. /// </summary> DestinationAlpha, /// <summary> /// Each component of the color is multiplied by the inversed alpha value of the destination. /// {1 - Ad, 1 - Ad, 1 - Ad, 1 - Ad}, where Ad is the destination alpha value. /// </summary> InverseDestinationAlpha, /// <summary> /// Each component of the color is multiplied by a constant in the <see cref="GraphicsDevice.BlendFactor"/>. /// </summary> BlendFactor, /// <summary> /// Each component of the color is multiplied by a inversed constant in the <see cref="GraphicsDevice.BlendFactor"/>. /// </summary> InverseBlendFactor, /// <summary> /// Each component of the color is multiplied by either the alpha of the source color, or the inverse of the alpha of the source color, whichever is greater. /// {f, f, f, 1}, where f = min(As, 1 - As), where As is the source alpha value. /// </summary> SourceAlphaSaturation, } } |