bevy/crates/bevy_text/src/lib.rs

19 lines
337 B
Rust
Raw Normal View History

2020-05-13 20:09:32 +00:00
mod font;
2020-05-16 02:46:09 +00:00
mod font_loader;
2020-05-14 01:05:18 +00:00
mod render;
2020-05-13 20:09:32 +00:00
pub use font::*;
2020-05-16 02:46:09 +00:00
pub use font_loader::*;
use bevy_app::{AppBuilder, AppPlugin};
use bevy_asset::AddAsset;
#[derive(Default)]
pub struct TextPlugin;
impl AppPlugin for TextPlugin {
fn build(&self, app: &mut AppBuilder) {
2020-05-16 07:27:30 +00:00
app.add_asset::<Font>().add_asset_loader(FontLoader);
2020-05-16 02:46:09 +00:00
}
}