Class PngTextureLoader
- Namespace
- Elegy.AssetSystem.Loaders
- Assembly
- Elegy.AssetSystem.dll
Built-in OBJ loader.
public class PngTextureLoader : BaseAssetIo, ITextureLoader, IAssetIo, IPlugin
- Inheritance
-
PngTextureLoader
- Implements
- Inherited Members
Properties
Name
The name of this plugin.
public override string Name { get; }
Property Value
Methods
LoadTexture(string, bool, bool)
Loads a texture from the given path
.
public (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[])
Supports(string)
Whether or not this asset loader/writer supports this format. For example, an OBJ loader may support .obj.
public override bool Supports(string path)
Parameters
path
string