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

string

Methods

LoadTexture(string, bool, bool)

Loads a texture from the given path.

public (TextureMetadata?, byte[]?) LoadTexture(string path, bool withoutData, bool hintSrgb)

Parameters

path string

Full path to an image.

withoutData bool

If true, only load the metadata.

hintSrgb bool

If 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

Returns

bool