Class DefaultTextureLoader

Default texture loader that prefers SDL2_Image if present, and falls back to dlib.image otherwise.

class DefaultTextureLoader
  : TextureLoader;

Constructors

NameDescription
this (assetManager) Constructor.

Fields

NameTypeDescription
hdrImageFactory dlib.image.hdri.UnmanagedHDRImageFactoryHDR image factory to load Radiance/HDR files.
ldrImageFactory dlib.image.unmanaged.UnmanagedImageFactoryLDR image factory for the fallback image loading method.
assetManager AssetManagerAsset manager that is be used to load texture data.

Methods

NameDescription
load (filename, extension, istrm, asset, option) Loads a texture asset from a stream, supporting multiple formats.