Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
AtlasExtractionRequest.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 
6 namespace SiliconStudio.TextureConverter.Requests
7 {
8  /// <summary>
9  /// Request to extract one or every textures from an atlas.
10  /// </summary>
11  class AtlasExtractionRequest : IRequest
12  {
13  public override RequestType Type { get { return RequestType.AtlasExtraction; } }
14 
15  /// <summary>
16  /// The name of the texture to extract
17  /// </summary>
18  public String Name { get; private set; }
19 
20  /// <summary>
21  /// The minimum size of the smallest mipmap.
22  /// </summary>
23  public int MinimumMipMapSize { get; private set; }
24 
25  /// <summary>
26  /// The extracted texture.
27  /// </summary>
28  public TexImage Texture { get; set; }
29 
30  /// <summary>
31  /// The extracted texture list.
32  /// </summary>
33  public List<TexImage> Textures { get; set; }
34 
35 
36  /// <summary>
37  /// Initializes a new instance of the <see cref="AtlasExtractionRequest"/> class. Used to extract a single texture.
38  /// </summary>
39  /// <param name="name">The name.</param>
40  public AtlasExtractionRequest(string name, int minimimMipmapSize)
41  {
42  Name = name;
43  MinimumMipMapSize = minimimMipmapSize;
44  Texture = new TexImage();
45  }
46 
47 
48  /// <summary>
49  /// Initializes a new instance of the <see cref="AtlasExtractionRequest"/> class. Used to extract every textures.
50  /// </summary>
51  public AtlasExtractionRequest(int minimimMipmapSize)
52  {
53  MinimumMipMapSize = minimimMipmapSize;
54  Textures = new List<TexImage>();
55  }
56  }
57 }
Request to extract one or every textures from an atlas.
AtlasExtractionRequest(int minimimMipmapSize)
Initializes a new instance of the AtlasExtractionRequest class. Used to extract every textures...
Temporary format containing texture data and information. Used as buffer between texture libraries...
Definition: TexImage.cs:13
AtlasExtractionRequest(string name, int minimimMipmapSize)
Initializes a new instance of the AtlasExtractionRequest class. Used to extract a single texture...