コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ComponentMapping"/> structure.
 /// </summary>
 /// <param name="r">
 /// Determines the component value placed in the R component of the output vector.
 /// </param>
 /// <param name="g">
 /// Determines the component value placed in the G component of the output vector.
 /// </param>
 /// <param name="b">
 /// Determines the component value placed in the B component of the output vector.
 /// </param>
 /// <param name="a">
 /// Determines the component value placed in the A component of the output vector.
 /// </param>
 public ComponentMapping(ComponentSwizzle r, ComponentSwizzle g, ComponentSwizzle b, ComponentSwizzle a)
 {
     R = r;
     G = g;
     B = b;
     A = a;
 }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 public ComponentMapping(ComponentSwizzle r, ComponentSwizzle g, ComponentSwizzle b, ComponentSwizzle a)
 {
     this.R = r;
     this.G = g;
     this.B = b;
     this.A = a;
 }
コード例 #3
0
 public ComponentMapping
 (
     ComponentSwizzle r = default,
     ComponentSwizzle g = default,
     ComponentSwizzle b = default,
     ComponentSwizzle a = default
 )
 {
     R = r;
     G = g;
     B = b;
     A = a;
 }
コード例 #4
0
 public ComponentMapping(ComponentSwizzle component)
 {
     R = G = B = A = component;
 }