diff --git a/examples/with_bevy/Cargo.toml b/examples/with_bevy/Cargo.toml index 2cdeec5c6..17f84b034 100644 --- a/examples/with_bevy/Cargo.toml +++ b/examples/with_bevy/Cargo.toml @@ -10,5 +10,5 @@ repository.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bevy = "0.10" +bevy = { git = "https://github.com/bevyengine/bevy", rev = "4d54ce14aaee8d7432380df37c41c03c28594b27" } vello = { path = "../../" } diff --git a/examples/with_bevy/src/main.rs b/examples/with_bevy/src/main.rs index 07a8c9312..eb88c4872 100644 --- a/examples/with_bevy/src/main.rs +++ b/examples/with_bevy/src/main.rs @@ -1,4 +1,4 @@ -use bevy::render::RenderSet; +use bevy::render::{Render, RenderSet}; use vello::kurbo::{Affine, Point, Rect}; use vello::peniko::{Color, Fill, Gradient, Stroke}; use vello::{Renderer, RendererOptions, Scene, SceneBuilder, SceneFragment}; @@ -41,7 +41,7 @@ impl Plugin for VelloPlugin { let Ok(render_app) = app.get_sub_app_mut(RenderApp) else { return }; render_app.init_resource::(); // This should probably use the render graph, but working out the dependencies there is awkward - render_app.add_system(render_scenes.in_set(RenderSet::Render)); + render_app.add_systems(Render, render_scenes.in_set(RenderSet::Render)); } } @@ -75,12 +75,12 @@ fn render_scenes( fn main() { App::new() .add_plugins(DefaultPlugins) - .add_system(bevy::window::close_on_esc) .add_plugin(VelloPlugin) - .add_startup_system(setup) - .add_system(cube_rotator_system) + .add_systems(Startup, setup) + .add_systems(Update, bevy::window::close_on_esc) + .add_systems(Update, cube_rotator_system) .add_plugin(ExtractComponentPlugin::::default()) - .add_system(render_fragment) + .add_systems(Update, render_fragment) .run() }