diff --git a/.gitignore b/.gitignore index eb1d4ef..3642657 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ /target Cargo.lock -.vscode \ No newline at end of file +.vscode + +.idea/ \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index e8fa50b..c7259e0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2021" name = "bevy_polyline" -version = "0.7.0" +version = "0.8.0" description = "Polyline Rendering for Bevy" license = "MIT OR Apache-2.0" repository = "https://github.com/ForesightMiningSoftwareCorporation/bevy_polyline" @@ -17,8 +17,8 @@ authors = [ ] [dependencies] -bitflags = "2.3" -bevy = { version = "0.11.0", default-features = false, features = [ +bitflags = "2.4.1" +bevy = { version = "0.12.0", default-features = false, features = [ "bevy_core_pipeline", "bevy_render", "bevy_asset", @@ -26,13 +26,13 @@ bevy = { version = "0.11.0", default-features = false, features = [ [dependencies.naga] features = ["glsl-in", "spv-out", "wgsl-out"] -version = "0.12" +version = "0.14" [dev-dependencies] lazy_static = "1.4.0" rand = "0.8.4" -ringbuffer = "0.14" -bevy = { version = "0.11.0", default-features = false, features = [ +ringbuffer = "0.15" +bevy = { version = "0.12", default-features = false, features = [ "bevy_winit", "bevy_pbr", "x11", diff --git a/README.md b/README.md index 251d9d7..1303324 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,8 @@ Due to instancing, Bevy Polyline only makes one drawcall per `PolyLine`, one for We intend to track the `main` branch of Bevy. PRs supporting this are welcome! | bevy | bevy_polyline | -| ---- | ------------- | +|------|---------------| +| 0.12 | 0.8 | | 0.11 | 0.7 | | 0.10 | 0.5, 0.6 | | 0.9 | 0.4 | diff --git a/examples/depth_bias.rs b/examples/depth_bias.rs index 78a59a6..8f2ad1a 100644 --- a/examples/depth_bias.rs +++ b/examples/depth_bias.rs @@ -1,5 +1,6 @@ use std::f32::consts::TAU; use std::f64::consts::TAU as TAU64; +use bevy::diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin}; use bevy::prelude::*; use bevy_polyline::prelude::*; @@ -23,6 +24,8 @@ fn main() { .insert_resource(ClearColor(Color::BLACK)) .insert_resource(Msaa::Sample4) .add_plugins(DefaultPlugins) + .add_plugins(FrameTimeDiagnosticsPlugin::default()) + .add_plugins(LogDiagnosticsPlugin::default()) .add_plugins(PolylinePlugin) .add_systems(Update, (move_camera, rotate_plane)) .add_systems(Startup, setup) diff --git a/examples/linestrip.rs b/examples/linestrip.rs index 27c8cd2..8fd56d9 100644 --- a/examples/linestrip.rs +++ b/examples/linestrip.rs @@ -1,10 +1,13 @@ use bevy::{pbr::PointLightBundle, prelude::*}; +use bevy::diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin}; use bevy_polyline::prelude::*; fn main() { App::new() .insert_resource(Msaa::Sample4) .add_plugins(DefaultPlugins) + .add_plugins(FrameTimeDiagnosticsPlugin::default()) + .add_plugins(LogDiagnosticsPlugin::default()) .add_plugins(PolylinePlugin) .add_systems(Startup, setup) .add_systems(Update, rotator_system) diff --git a/examples/minimal.rs b/examples/minimal.rs index eb4c004..de2bb85 100644 --- a/examples/minimal.rs +++ b/examples/minimal.rs @@ -1,9 +1,12 @@ +use bevy::diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin}; use bevy::prelude::*; use bevy_polyline::prelude::*; fn main() { App::new() .add_plugins(DefaultPlugins) + .add_plugins(FrameTimeDiagnosticsPlugin::default()) + .add_plugins(LogDiagnosticsPlugin::default()) .add_plugins(PolylinePlugin) .add_systems(Startup, setup) .run(); diff --git a/examples/nbody.rs b/examples/nbody.rs index 590f748..6497362 100644 --- a/examples/nbody.rs +++ b/examples/nbody.rs @@ -9,7 +9,7 @@ use bevy_polyline::prelude::*; use lazy_static::*; use rand::{prelude::*, Rng}; -use ringbuffer::{ConstGenericRingBuffer, RingBufferExt, RingBufferWrite}; +use ringbuffer::{ConstGenericRingBuffer, RingBuffer}; const NUM_BODIES: usize = 512; const TRAIL_LENGTH: usize = 1024; @@ -24,14 +24,14 @@ fn main() { ..Default::default() }) .add_plugins(DefaultPlugins) + .add_plugins(FrameTimeDiagnosticsPlugin::default()) + .add_plugins(LogDiagnosticsPlugin::default()) .add_plugins(PolylinePlugin) .add_systems(Startup, setup) .add_systems( Update, ((nbody_system, update_trails).chain(), rotator_system), ) - .add_plugins(FrameTimeDiagnosticsPlugin::default()) - .add_plugins(LogDiagnosticsPlugin::default()) .run(); } @@ -101,7 +101,7 @@ fn rotator_system(time: Res