// ------------------------------------------------------------------------ // Copyright (c) 2021-2026, Jiaqi (0x7c13) Liu. All rights reserved. // See LICENSE file in the project root for license information. // ------------------------------------------------------------------------ namespace Engine.Core.Abstraction { /// /// Interface for providing texture resources. /// public interface ITextureResourceProvider { /// /// Gets the path of the texture with the specified name. /// /// The name of the texture. /// The path of the texture. public string GetTexturePath(string name); /// /// Gets the texture with the specified name. /// /// The name of the texture. /// The texture. public ITexture2D GetTexture(string name); /// /// Gets the texture with the specified name and determines if it has an alpha channel. /// /// The name of the texture. /// Whether or not the texture has an alpha channel. /// The texture. public ITexture2D GetTexture(string name, out bool hasAlphaChannel); } }