Class Asset
Abstract base class for all asset types.
Assets are managed by the AssetManager and support
thread-safe and thread-unsafe loading.
class Asset
: dlib .core .ownership .Owner;
Constructors
| Name | Description |
|---|---|
this
(owner)
|
Constructor. |
Fields
| Name | Type | Description |
|---|---|---|
monitorInfo
|
MonitorInfo | File monitoring information for the asset. |
threadSafePartLoaded
|
bool | Is thread-safe phase of an asset loading is done. |
threadUnsafePartLoaded
|
bool | Is thread-unsafe phase of an asset loading is done. |
Methods
| Name | Description |
|---|---|
loadThreadSafePart
(filename, istrm, fs, mngr)
|
Loads the thread-safe part of the asset (e.g., reading from disk). |
loadThreadUnsafePart
()
|
Loads the thread-unsafe part of the asset (e.g., OpenGL resource creation). |
release
()
|
Releases all resources associated with the asset. |