mirror of
https://github.com/bevyengine/bevy
synced 2025-01-09 03:38:55 +00:00
18 lines
No EOL
347 B
Rust
18 lines
No EOL
347 B
Rust
mod font;
|
|
mod font_loader;
|
|
|
|
pub use font::*;
|
|
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) {
|
|
app.add_asset::<Font>()
|
|
.add_asset_loader::<Font, FontLoader>();
|
|
}
|
|
} |