bevy/crates/bevy_text/src/lib.rs

30 lines
559 B
Rust
Raw Normal View History

2020-06-15 19:47:35 +00:00
mod draw;
2020-05-13 20:09:32 +00:00
mod font;
mod font_atlas;
mod font_atlas_set;
2020-06-15 19:47:35 +00:00
mod font_loader;
2020-05-13 20:09:32 +00:00
2020-06-15 19:47:35 +00:00
pub use draw::*;
2020-05-13 20:09:32 +00:00
pub use font::*;
pub use font_atlas::*;
pub use font_atlas_set::*;
2020-06-15 19:47:35 +00:00
pub use font_loader::*;
2020-05-16 02:46:09 +00:00
2020-07-17 02:34:18 +00:00
pub mod prelude {
2020-07-26 19:10:18 +00:00
pub use crate::{Font, TextAlign, TextStyle};
2020-07-17 02:34:18 +00:00
}
2020-07-17 01:47:51 +00:00
use bevy_app::prelude::*;
2020-05-16 02:46:09 +00:00
use bevy_asset::AddAsset;
#[derive(Default)]
pub struct TextPlugin;
impl AppPlugin for TextPlugin {
fn build(&self, app: &mut AppBuilder) {
2020-05-22 00:21:33 +00:00
app.add_asset::<Font>()
.add_asset::<FontAtlasSet>()
2020-05-22 00:21:33 +00:00
.add_asset_loader::<Font, FontLoader>();
2020-05-16 02:46:09 +00:00
}
2020-06-04 03:08:20 +00:00
}