Function DefaultTextureLoader.load

Loads a texture asset from a stream, supporting multiple formats.

override dlib.core.compound.Compound!(bool,string) load(
  string filename,
  string extension,
  dlib.core.stream.InputStream istrm,
  TextureAsset asset,
  uint option = 0u
);

Parameters

NameDescription
filename Name of the file.
extension File extension.
istrm Input stream.
asset Texture asset to fill.
option Loader-specific option (unused).

Returns

Compound!(bool, string) indicating success and error message.