Module veloren_common_assets::loader
Expand description
Generic asset loading definition
This module defines a trait Loader
, to specify how assets are loaded
from raw bytes.
It also defines loaders, ie types that implement Loader
, so in most
cases you don’t have to implement this trait yourself. These loaders work
with standard traits and serde
.
See trait Loader
for more information.
Structs§
- Loads assets from Bincode encoded files.
- Loads assets as raw bytes.
- Loads fonts.
- Loads glTF assets.
- Loads assets as images.
- Loads assets from JSON files.
- Loads assets from another type.
- Loads assets that can be parsed with
FromStr
. - Loads assets from RON files.
- Loads assets used as sounds.
- Loads assets as a String.
Traits§
- Specifies how an asset is loaded.
Type Aliases§
- Loads assets from another asset.