using Microsoft.Xna.Framework.Graphics; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StardustCore.UIUtilities { public class LayeredTexture { public List textureLayers; public LayeredTexture(List textures) { this.textureLayers = textures; } /// /// Adds a new texture as the top layer. /// /// public void addTexture(Texture2DExtended texture) { this.textureLayers.Add(texture); } /// /// Adds a new texture at a specific layer depth. /// /// /// public void addTexture(Texture2DExtended texture, int index) { this.textureLayers.Insert(index, texture); } public LayeredTexture Copy() { return new LayeredTexture(this.textureLayers); } } }