Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
MipMapsGenerationRequest.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 
8 namespace SiliconStudio.TextureConverter.Requests
9 {
10  /// <summary>
11  /// Request to generate the mipmap chain on a texture (3d texture mipmap generation not yet supported)
12  /// </summary>
13  internal class MipMapsGenerationRequest : IRequest
14  {
15  public override RequestType Type { get { return RequestType.MipMapsGeneration; } }
16 
17 
18  /// <summary>
19  /// The filter to be used when rescaling to create the mipmaps of lower level.
20  /// </summary>
21  /// <value>
22  /// The filter.
23  /// </value>
24  public Filter.MipMapGeneration Filter { get; private set; }
25 
26 
27  /// <summary>
28  /// Initializes a new instance of the <see cref="MipMapsGenerationRequest"/> class.
29  /// </summary>
30  /// <param name="filter">The filter.</param>
31  public MipMapsGenerationRequest(Filter.MipMapGeneration filter)
32  {
33  Filter = filter;
34  }
35  }
36 }
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}.