diff --git a/Cargo.toml b/Cargo.toml index 2646348..972a9eb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,4 +17,5 @@ futures = "0.3.26" image = "0.24.5" nokhwa = { version = "0.10.3", features = ["input-native", "output-threaded"] } tokio = { version = "1.25.0", features = ["full"] } -uuid = "1.3.0" \ No newline at end of file +uuid = "1.3.0" +bevy_embedded_assets = "0.6.2" diff --git a/examples/uhdrtz.rs b/examples/uhdrtz.rs index c0f128d..70b73d2 100644 --- a/examples/uhdrtz.rs +++ b/examples/uhdrtz.rs @@ -2,20 +2,26 @@ // This will also be what the final binary should be made of and deployed from. use bevy::prelude::*; use bevy::window::PresentMode; +use bevy_embedded_assets::EmbeddedAssetPlugin; use uhdrtz::prelude::*; fn main() { App::new() // this plugin stuff here could be set into a large Zoetrope plugin that is controlled in the library itself // thus that the actual example is just adding in that one plugin to the bevy system and its done - .add_plugins(DefaultPlugins.set(WindowPlugin { - window: WindowDescriptor { - mode: WindowMode::BorderlessFullscreen, - present_mode: PresentMode::Fifo, - ..default() - }, - ..default() - })) + .add_plugins( + DefaultPlugins + .build() + .add_before::(EmbeddedAssetPlugin) + .set(WindowPlugin { + window: WindowDescriptor { + mode: WindowMode::BorderlessFullscreen, + present_mode: PresentMode::Fifo, + ..default() + }, + ..default() + }), + ) .add_plugin(ZoetropePlugin) .run() }