Interface ITextureLoader
- Namespace
- Elegy.AssetSystem.Interfaces
- Assembly
- Elegy.AssetSystem.dll
Texture loader interface.
public interface ITextureLoader : IAssetIo, IPlugin
- Inherited Members
Methods
LoadTexture(string, bool, bool)
Loads a texture from the given path.
(TextureMetadata?, byte[]?) LoadTexture(string path, bool withoutData, bool hintSrgb)
Parameters
pathstringFull path to an image.
withoutDataboolIf true, only load the metadata.
hintSrgbboolIf true, mark the texture as an SRGB one.
Returns
- (TextureMetadata, byte[])