Module dagon.resource.asset

Asset management tools.

Description

The dagon.resource.asset module defines the Asset base class for resource objects, the AssetManager for loading, monitoring, and managing assets, and loader classes for textures and images. The system supports threaded loading, live asset monitoring, and virtual file systems. Texture loading can use SDL2_Image if available, or fall back to dlib.image. The asset manager supports mounting directories and box files, and can detect and handle base64-encoded images.

Classes

NameDescription
Asset Abstract base class for all asset types. Assets are managed by the AssetManager and support thread-safe and thread-unsafe loading.
AssetManager Manages loading, monitoring, and access to assets.
DefaultTextureLoader Default texture loader that prefers SDL2_Image if present, and falls back to dlib.image otherwise.
TextureLoader Abstract base class for texture loaders. Texture loaders are responsible for loading image data and creating texture assets.

Structs

NameDescription
ImageFormatInfo Stores information about an image format for base64 detection.
MonitorInfo Stores file monitoring information for an asset.