Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ArrayUpdateRequest.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 update a specific texture in a texture array.
10  /// </summary>
11  class ArrayUpdateRequest : IRequest
12  {
13  public override RequestType Type { get { return RequestType.ArrayUpdate; } }
14 
15  /// <summary>
16  /// The indice of the texture to replace in the array.
17  /// </summary>
18  public int Indice { get; private set; }
19 
20 
21  /// <summary>
22  /// The new texture.
23  /// </summary>
24  public TexImage Texture { get; private set; }
25 
26 
27  /// <summary>
28  /// Initializes a new instance of the <see cref="AtlasUpdateRequest"/> class.
29  /// </summary>
30  /// <param name="texture">The new texture.</param>
31  /// <param name="name">The indice of the texture to replace.</param>
32  public ArrayUpdateRequest(TexImage texture, int indice)
33  {
34  Texture = texture;
35  Indice = indice;
36  }
37  }
38 }
ArrayUpdateRequest(TexImage texture, int indice)
Initializes a new instance of the AtlasUpdateRequest class.
Request to update a specific texture in a texture array.
Temporary format containing texture data and information. Used as buffer between texture libraries...
Definition: TexImage.cs:13