Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
BlendFunction.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using SiliconStudio.Core;
4 
5 namespace SiliconStudio.Paradox.Graphics
6 {
7  /// <summary>
8  /// RGB or alpha blending operation.
9  /// </summary>
10  /// <remarks>
11  /// The runtime implements RGB blending and alpha blending separately. Therefore, blend state requires separate blend operations for RGB data and alpha data. These blend operations are specified in a <see cref="BlendState"/>.
12  /// </remarks>
13  [DataContract]
14  public enum BlendFunction
15  {
16  /// <summary>
17  /// Add source 1 and source 2.
18  /// </summary>
19  Add = 1,
20 
21  /// <summary>
22  /// Subtract source 1 from source 2.
23  /// </summary>
24  Subtract = 2,
25 
26  /// <summary>
27  /// Subtract source 2 from source 1.
28  /// </summary>
29  ReverseSubtract = 3,
30 
31  /// <summary>
32  /// Find the minimum of source 1 and source 2.
33  /// </summary>
34  Min = 4,
35 
36  /// <summary>
37  /// Find the maximum of source 1 and source 2.
38  /// </summary>
39  Max = 5,
40  }
41 }
Find the minimum of source 1 and source 2.
Subtract source 2 from source 1.
Find the maximum of source 1 and source 2.
BlendFunction
RGB or alpha blending operation.