Expand description
Load assets (images or voxel data) from files
Modules§
- fs 🔒
- loader
- Generic asset loading definition
- 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:
- AnyCache
- A non-generic version of [
AssetCache
]. - Asset
Cache - The main structure of this crate, used to cache assets.
- Bincode
Loader - Loads assets from Bincode encoded files.
- Bytes
Loader - Loads assets as raw bytes.
- DotVox
Asset - DotVox
Loader - Error
- The error type which is used when loading an asset.
- Image
- Image
Loader - Json
Loader - Loads assets from JSON files.
- Load
From - Loads assets from another type.
- Multi
Ron - This wrapper combines several RON files from multiple sources
- ObjAsset
- ObjAsset
Loader - Ron
- Loads a value from a JSON file.
- RonLoader
- Loads assets from RON files.
- Shared
String - A string that can easily be shared.
- String
Loader - Loads assets as a String.
Enums§
- Walk
- Represent tree of directory, result of [generate_tree].
Traits§
- Asset
- An asset is a type loadable from raw bytes.
- 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 AnyCache to combine Ron files from filesystem and plugins
- Compound
- An asset type that can load other kinds of assets.
- Concatenate
- DirLoadable
- Assets that are loadable from directories
- Loader
- Specifies how an asset is loaded.
- Source
- Bytes sources to load assets from.
Functions§
- find_
root - Return path to repository root by searching 10 directories back
- load_
rec_ dir - Loads directory and all files in it
- register_
tar - start_
hot_ reloading - walk_
tree - Helper function to Walk::generate(), prefer using it instead.