Crate bevy_libgdx_atlas

Source
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§

LibGdxAssetPlugin
This plugin initializes the LibGdxAtlasAsset, and its private loader LibGdxAtlasAssetLoader, so that .libgdx.atlas files may be loaded as assets.
LibGdxAtlasAsset
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§

LibGdxAtlasAssetError
Errors that can occur during parsing of .libgdx.atlas files, or during loading of LibGdxAtlasAssets.