diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-28 16:13:16 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-28 16:13:16 +1000 |
commit | e5b3f7a823f5e73cb17456d4b9bdd59760fb18ed (patch) | |
tree | 674ab932766891cfc27c137488e9b496d706299f /bindgen | |
parent | 7b86e3251a28406862fe16d49f8533beb8ca3150 (diff) |
wrap light types in an enum
Diffstat (limited to 'bindgen')
-rw-r--r-- | bindgen/rust/src/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
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 |