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
path
stringFull path to an image.
withoutData
boolIf true, only load the metadata.
hintSrgb
boolIf true, mark the texture as an SRGB one.
Returns
- (TextureMetadata, byte[])