bevy/crates/bevy_gltf/src/lib.rs

16 lines
306 B
Rust
Raw Normal View History

mod loader;
pub use loader::*;
2020-05-16 07:27:30 +00:00
use bevy_app::{AppBuilder, AppPlugin};
use bevy_asset::AddAsset;
2020-05-22 00:21:33 +00:00
use bevy_render::mesh::Mesh;
#[derive(Default)]
pub struct GltfPlugin;
2020-04-20 02:29:33 +00:00
impl AppPlugin for GltfPlugin {
fn build(&self, app: &mut AppBuilder) {
2020-05-22 00:21:33 +00:00
app.add_asset_loader::<Mesh, GltfLoader>();
}
2020-05-16 07:27:30 +00:00
}