Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
AtlasCreationRequest.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 create an atlas from a texture list.
10  /// </summary>
11  class AtlasCreationRequest : IRequest
12  {
13  public override RequestType Type { get { return RequestType.AtlasCreation; } }
14 
15  /// <summary>
16  /// The texture list that will populate the atlas.
17  /// </summary>
18  public List<TexImage> TextureList { get; private set; }
19 
20 
21  /// <summary>
22  /// The boolean to decide whether the atlas will be squared.
23  /// </summary>
24  public bool ForceSquaredAtlas { get; private set; }
25 
26  /// <summary>
27  /// Initializes a new instance of the <see cref="AtlasCreationRequest"/> class.
28  /// </summary>
29  /// <param name="textureList">The texture list.</param>
30  public AtlasCreationRequest(List<TexImage> textureList, bool forceSquaredAtlas = false)
31  {
32  TextureList = textureList;
33  ForceSquaredAtlas = forceSquaredAtlas;
34  }
35  }
36 }
AtlasCreationRequest(List< TexImage > textureList, bool forceSquaredAtlas=false)
Initializes a new instance of the AtlasCreationRequest class.
Request to create an atlas from a texture list.