Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
GammaCorrectionRequest.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 System;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.Text;
7 using System.Threading.Tasks;
8 
9 namespace SiliconStudio.TextureConverter.Requests
10 {
11  /// <summary>
12  /// Request to adjust gamma on the texture to a specified value
13  /// </summary>
14  internal class GammaCorrectionRequest : IRequest
15  {
16  public override RequestType Type { get { return RequestType.GammaCorrection; } }
17 
18  /// <summary>
19  /// The gamma value
20  /// </summary>
21  public double Gamma { private set; get; }
22 
23  /// <summary>
24  /// Initializes a new instance of the <see cref="GammaCorrectionRequest"/> class.
25  /// </summary>
26  public GammaCorrectionRequest(double gamma)
27  {
28  Gamma = gamma;
29  }
30  }
31 }
The type of the serialized type will be passed as a generic arguments of the serializer. Example: serializer of A becomes instantiated as Serializer{A}.