Skip to content

Commit

Permalink
feat: update bevy_vello to 0.6 for render layer support
Browse files Browse the repository at this point in the history
  • Loading branch information
nixon-voxell committed Aug 13, 2024
1 parent bd7f837 commit b8cd72d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ bevy_ecs = "0.14"
bevy_math = "0.14"
bevy_color = "0.14"
bevy_utils = "0.14"
bevy_vello = "0.5"
bevy_vello = "0.6"

[dev-dependencies]
bevy = "0.14"
Expand Down
9 changes: 5 additions & 4 deletions examples/hello_world.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
use bevy::{color::palettes::css, math::DVec2, prelude::*};
use bevy_vello_graphics::{bevy_vello::prelude::*, prelude::*};
use bevy_vello_graphics::{
bevy_vello::{prelude::*, VelloPlugin},
prelude::*,
};

fn main() {
App::new()
// Bevy plugins
.add_plugins(DefaultPlugins)
// Custom Plugins
.add_plugins((DefaultPlugins, VelloPlugin::default()))
.add_plugins(VelloGraphicsPlugin)
.add_systems(Startup, (setup, render_shapes))
.add_systems(Update, animation)
Expand Down
20 changes: 10 additions & 10 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
//! ```no_run
//! use bevy::prelude::*;
//! use bevy_vello_graphics::prelude::*;
//! use bevy_vello_graphics::bevy_vello::VelloPlugin;
//!
//! App::new()
//! .add_plugins((DefaultPlugins, VelloGraphicsPlugin))
//! .add_plugins((DefaultPlugins, VelloPlugin::default()))
//! .add_plugins(VelloGraphicsPlugin)
//! // ...your other plugins, systems, etc.
//! .run();
//! ```
Expand Down Expand Up @@ -51,7 +53,6 @@ use bevy_app::prelude::*;
use bevy_ecs::prelude::*;
use bevy_vello::prelude::*;

use bevy_vello::VelloPlugin;
use head::{draw_heads, prepare_heads, HeadScene};
use prelude::*;
use vector::{draw_vectors, VectorScene};
Expand Down Expand Up @@ -89,14 +90,13 @@ impl Plugin for VelloGraphicsPlugin {
app.configure_sets(Update, ((DrawVector, DrawHead), Composite).chain());
app.configure_sets(Update, (PrepareHead, DrawHead).chain());

app.add_plugins(VelloPlugin)
.add_plugins((
VectorPlugin::<VelloRect>::default(),
VectorPlugin::<VelloCircle>::default(),
VectorPlugin::<VelloLine>::default(),
VectorPlugin::<VelloBezPath>::default(),
))
.add_systems(Update, composite.in_set(Composite));
app.add_plugins((
VectorPlugin::<VelloRect>::default(),
VectorPlugin::<VelloCircle>::default(),
VectorPlugin::<VelloLine>::default(),
VectorPlugin::<VelloBezPath>::default(),
))
.add_systems(Update, composite.in_set(Composite));
}
}

Expand Down

0 comments on commit b8cd72d

Please sign in to comment.