2020-05-15 23:55:44 +00:00
|
|
|
mod loader;
|
|
|
|
pub use loader::*;
|
2020-04-19 17:08:47 +00:00
|
|
|
|
2020-07-17 01:47:51 +00:00
|
|
|
use bevy_app::prelude::*;
|
2020-05-16 07:27:30 +00:00
|
|
|
use bevy_asset::AddAsset;
|
2020-05-22 00:21:33 +00:00
|
|
|
use bevy_render::mesh::Mesh;
|
2020-04-19 17:08:47 +00:00
|
|
|
|
2020-05-15 23:55:44 +00:00
|
|
|
#[derive(Default)]
|
|
|
|
pub struct GltfPlugin;
|
2020-04-20 02:29:33 +00:00
|
|
|
|
2020-08-08 03:22:17 +00:00
|
|
|
impl Plugin for GltfPlugin {
|
2020-05-15 23:55:44 +00:00
|
|
|
fn build(&self, app: &mut AppBuilder) {
|
2020-05-22 00:21:33 +00:00
|
|
|
app.add_asset_loader::<Mesh, GltfLoader>();
|
2020-04-19 17:08:47 +00:00
|
|
|
}
|
2020-05-16 07:27:30 +00:00
|
|
|
}
|