Expand description
Load assets (images or voxel data) from files
Modules§
- fs 🔒
- plugin_
cache 🔒 - source
- Bytes sources to load assets from.
- walk 🔒
Structs§
- ASSETS 🔒
- The HashMap where all loaded assets are stored in.
- ASSETS_
PATH - Lazy static to find and cache where the asset directory is. Cases we need to account for:
- Asset
Cache - The main structure of this crate, used to load and store assets.
- DotVox
- Error
- The error type which is used when loading an asset.
- Image
- Multi
Ron - This wrapper combines several RON files from multiple sources
- Obj
- Ron
- Loads a value from a JSON file.
- Shared
String - A string that can easily be shared.
Enums§
- Walk
- Represent tree of directory, result of Walk::generate.
Traits§
- Asset
- An asset type that can load other kinds of assets.
- Asset
Combined - Extension to AssetExt to combine Ron files from filesystem and plugins
- Asset
Ext - The Asset trait, which is implemented by all structures that have their data stored in the filesystem.
- Cache
Combined - Extension to AssetCache to combine Ron files from filesystem and plugins
- Concatenate
- DirLoadable
- Assets that are loadable from directories
- File
Asset - An asset that can be loaded from a single file.
- Source
- Bytes sources to load assets from.
Functions§
- find_
root - Return path to repository root by searching 10 directories back
- load_
bincode_ legacy - Deserializes a value from a bincode-encoded file.
- load_
rec_ dir - Loads directory and all files in it.
- load_
ron - Deserializes a value from a RON file.
- register_
tar - walk_
tree - Helper function to Walk::generate(), prefer using it instead.