From 017a7d4c7bdfd17312485fa953ab567efe1c5465 Mon Sep 17 00:00:00 2001 From: Nova Date: Tue, 1 Jul 2025 02:20:56 -0700 Subject: [PATCH] feat: animation plugin --- Cargo.lock | 27 +++++++++++++++++++++++++++ Cargo.toml | 2 +- src/main.rs | 1 + 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index f9ca5bf..3939c9d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3473,6 +3473,9 @@ dependencies = [ "byteorder-lite", "num-traits", "png", + "qoi", + "zune-core", + "zune-jpeg", ] [[package]] @@ -5053,6 +5056,15 @@ dependencies = [ "prost", ] +[[package]] +name = "qoi" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f6d64c71eb498fe9eae14ce4ec935c555749aef511cca85b5568910d6e48001" +dependencies = [ + "bytemuck", +] + [[package]] name = "quick-xml" version = "0.37.5" @@ -7825,6 +7837,21 @@ dependencies = [ "syn 2.0.104", ] +[[package]] +name = "zune-core" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f423a2c17029964870cfaabb1f13dfab7d092a62a29a89264f4d36990ca414a" + +[[package]] +name = "zune-jpeg" +version = "0.4.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e4a518c0ea2576f4da876349d7f67a7be489297cd77c2cf9e04c2e05fcd3974" +dependencies = [ + "zune-core", +] + [[package]] name = "zvariant" version = "5.5.3" diff --git a/Cargo.toml b/Cargo.toml index f7bb0e3..14e08a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -79,7 +79,7 @@ mint = "0.5.9" tokio = { version = "1.39.2", features = ["rt-multi-thread", "signal", "time"] } # bevy -bevy = { version = "0.16", features = ["wayland", "mp3", "wav"] } +bevy = { version = "0.16", features = ["wayland", "mp3", "wav", "animation", "qoi", "png", "hdr", "jpeg"] } bevy_mod_xr = "0.3" bevy_mod_openxr = "0.3" # bevy_sk.git = "https://github.com/MalekiRe/bevy_sk" diff --git a/src/main.rs b/src/main.rs index d6c7923..98cc752 100644 --- a/src/main.rs +++ b/src/main.rs @@ -277,6 +277,7 @@ fn bevy_loop( // required for gltf .add(ScenePlugin) .add(GltfPlugin::default()) + .add(AnimationPlugin) .add(AudioPlugin::default()) .add(GizmoPlugin) .add(WindowPlugin::default());