Class DefaultTextureLoader
Default texture loader that prefers SDL2_Image if present, and falls back to dlib.image otherwise.
Constructors
| Name | Description |
this
(assetManager)
|
Constructor.
|
Fields
| Name | Type | Description |
hdrImageFactory
|
dlib.image.hdri.UnmanagedHDRImageFactory | HDR image factory to load Radiance/HDR files.
|
ldrImageFactory
|
dlib.image.unmanaged.UnmanagedImageFactory | LDR image factory for the fallback image loading method.
|
assetManager
|
AssetManager | Asset manager that is be used to load texture data.
|
Methods
| Name | Description |
load
(filename, extension, istrm, asset, option)
|
Loads a texture asset from a stream, supporting multiple formats.
|