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

NameDescription
this (owner) Constructor.

Fields

NameTypeDescription
monitorInfo MonitorInfoFile monitoring information for the asset.
threadSafePartLoaded boolIs thread-safe phase of an asset loading is done.
threadUnsafePartLoaded boolIs thread-unsafe phase of an asset loading is done.

Methods

NameDescription
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.