kitgit

tirbofish/dropbear · commit

51530a7586cbce78e70f9471aca281317e6c5064

feature: skybox on redback-runtime works todo: animations now and user defined skyboxes and reflections.

Unverified

Thribhu K <4tkbytes@pm.me> · 2026-02-09 01:55

view full diff

diff --git a/Cargo.toml b/Cargo.toml
index aed3628..18b21b4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -81,6 +81,9 @@ thiserror = "2.0"
 tempfile = "3.24"
 combine = "4.6"
 glyphon = { git = "https://github.com/grovesNL/glyphon", rev = "9dd9376" }
+puffin = "0.19"
+bitflags = "2.10"
+features = "0.10"
 
 [workspace.dependencies.image]
 version = "0.24"
diff --git a/crates/dropbear-engine/Cargo.toml b/crates/dropbear-engine/Cargo.toml
index b972591..094c9cf 100644
--- a/crates/dropbear-engine/Cargo.toml
+++ b/crates/dropbear-engine/Cargo.toml
@@ -45,6 +45,9 @@ typetag.workspace = true
 postcard.workspace = true
 pollster.workspace = true
 image.workspace = true
+puffin.workspace = true
+bitflags.workspace = true
+
 #yakui-wgpu.workspace = true
 #yakui.workspace = true
 
diff --git a/crates/dropbear-engine/src/features.rs b/crates/dropbear-engine/src/features.rs
new file mode 100644
index 0000000..b905c5e
--- /dev/null
+++ b/crates/dropbear-engine/src/features.rs
@@ -0,0 +1,301 @@
+// Copyright ⓒ 2017 Fletcher Nichol and/or applicable contributors.
+//
+// Licensed under the Apache License, Version 2.0 (see LICENSE-APACHE or
+// <http://www.apache.org/licenses/LICENSE-2.0>) or the MIT license (see<LICENSE-MIT or
+// <http://opensource.org/licenses/MIT>, at your option. This file may not be copied, modified, or
+// distributed except according to those terms.
+
+//! `features` is a small library that implements runtime [feature toggles][fowler_toggles] for
+//! your library or program allowing behavior to be changed on boot or dynamically at runtime using
+//! the same compiled binary artifact. This is different from cargo's [feature][cargo_feature]
+//! support which uses conditional compilation.
+//!
+//! At its core, it is a macro (`features!`) that takes a collection of feature flag names which it
+//! uses to generate a module containing a function to enable a feature toggle (`::enable()`), a
+//! function to disable a feature toggle (`::disable()`) and a function to check if a feature
+//! toggle is enabled (`::is_enabled()`).

Large diffs are not rendered by default. Showing the first 50 of 870 lines. Show full diff