From e5b3f7a823f5e73cb17456d4b9bdd59760fb18ed Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 28 Jul 2024 16:13:16 +1000 Subject: wrap light types in an enum --- bindgen/rust/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bindgen') diff --git a/bindgen/rust/src/lib.rs b/bindgen/rust/src/lib.rs index c86e2d6..4963d8c 100644 --- a/bindgen/rust/src/lib.rs +++ b/bindgen/rust/src/lib.rs @@ -55,3 +55,10 @@ impl SerializableScene { serde_json::from_str(&contents).expect("Should be deserializable") } } + +#[derive(Debug, Clone)] +pub enum Light { + Point(ffi::PointLight), + Directional(ffi::DirectionalLight), + // Spot(ffi::Spotlight) +} \ No newline at end of file -- cgit v1.2.3-70-g09d2