diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-12 00:15:33 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-12 00:15:33 +1000 |
commit | 72b8d26fcfcee36ca67f963b9c6a4b616e2d5d4d (patch) | |
tree | 76ab2c18db5a834c6282ab4e2afa2db33f70be27 /bindgen/rust/celeritas-sys/src | |
parent | a8f98ddcf5ddeb3588492f4ad8f9a289147ad7ec (diff) |
scale is a vec3 now instead of float.
Diffstat (limited to 'bindgen/rust/celeritas-sys/src')
-rw-r--r-- | bindgen/rust/celeritas-sys/src/lib.rs | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/bindgen/rust/celeritas-sys/src/lib.rs b/bindgen/rust/celeritas-sys/src/lib.rs index 90a5914..048e9f7 100644 --- a/bindgen/rust/celeritas-sys/src/lib.rs +++ b/bindgen/rust/celeritas-sys/src/lib.rs @@ -2,8 +2,6 @@ #![allow(non_camel_case_types)] #![allow(non_snake_case)] -use std::ffi::c_void; - use serde::{Deserialize, Serialize}; include!(concat!(env!("OUT_DIR"), "/bindings.rs")); @@ -81,7 +79,11 @@ impl Transform { z: 0., w: 1.0, }, - scale: 1., + scale: Vec3 { + x: 1., + y: 1., + z: 1., + }, is_dirty: true, } } @@ -116,15 +118,6 @@ impl Default for ShaderBinding { } } -impl Default for ShaderDataLayout { - fn default() -> Self { - Self { - bindings: [ShaderBinding::default(); 8], - binding_count: 0, - } - } -} - impl Default for Camera { fn default() -> Self { let camera_pos = Vec3 { @@ -137,7 +130,8 @@ impl Default for Camera { y: -0.2, z: -0.7, }; - let camera = unsafe { + + unsafe { Camera_Create( camera_pos, camera_front, @@ -148,8 +142,7 @@ impl Default for Camera { }, 45.0, ) - }; - camera + } } } |