Expand description
§Bevy Libgdx Atlas
bevy_libgdx_atlas adds an asset loader for libGDX’s atlas format with the exetension .libgdx.atlas to allow use of it as a LibGdxAtlasAsset.
§Usage
To use, you would add the LibGdxAssetPlugin to your app:
use bevy::prelude::*;
use bevy_libgdx_atlas::*;
let mut app = App::new();
app.add_plugins(MinimalPlugins);
app.add_plugins(AssetPlugin::default());
app.add_plugins(LibGdxAssetPlugin);Now when you load files with the .libgdx.atlas extension through the asset server, or even bevy_asset_loader, they will load as a LibGdxAtlasAsset which you can then use.
Structs§
- LibGdx
Asset Plugin - This plugin initializes the
LibGdxAtlasAsset, and its private loaderLibGdxAtlasAssetLoader, so that.libgdx.atlasfiles may be loaded as assets. - LibGdx
Atlas Asset - This is an asset containing the texture atlas image, the texture atlas layout, and a map of the original file names to their corresponding indices in the texture atlas.
Enums§
- LibGdx
Atlas Asset Error - Errors that can occur during parsing of
.libgdx.atlasfiles, or during loading ofLibGdxAtlasAssets.