From 06782da13ef3f57ed58ec2f64c75169058696021 Mon Sep 17 00:00:00 2001 From: Doug Roeper Date: Thu, 25 May 2023 08:10:57 -0400 Subject: [PATCH] Adds support for glam 024 --- Cargo.toml | 2 ++ src/third_party/glam/mod.rs | 2 ++ src/third_party/glam/v024/mod.rs | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 src/third_party/glam/v024/mod.rs diff --git a/Cargo.toml b/Cargo.toml index f5c67d15..dfdc0250 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,6 +48,7 @@ convert-glam020 = [ "glam020" ] convert-glam021 = [ "glam021" ] convert-glam022 = [ "glam022" ] convert-glam023 = [ "glam023" ] +convert-glam024 = [ "glam024" ] # Serialization ## To use serde in a #[no-std] environment, enable the @@ -103,6 +104,7 @@ glam020 = { package = "glam", version = "0.20", optional = true } glam021 = { package = "glam", version = "0.21", optional = true } glam022 = { package = "glam", version = "0.22", optional = true } glam023 = { package = "glam", version = "0.23", optional = true } +glam024 = { package = "glam", version = "0.24", optional = true } cust_core = { version = "0.1", optional = true } rayon = { version = "1.6", optional = true } diff --git a/src/third_party/glam/mod.rs b/src/third_party/glam/mod.rs index 8c250bbf..b868817a 100644 --- a/src/third_party/glam/mod.rs +++ b/src/third_party/glam/mod.rs @@ -18,3 +18,5 @@ mod v021; mod v022; #[cfg(feature = "glam023")] mod v023; +#[cfg(feature = "glam024")] +mod v024; diff --git a/src/third_party/glam/v024/mod.rs b/src/third_party/glam/v024/mod.rs new file mode 100644 index 00000000..3dae276f --- /dev/null +++ b/src/third_party/glam/v024/mod.rs @@ -0,0 +1,18 @@ +#[path = "../common/glam_isometry.rs"] +mod glam_isometry; +#[path = "../common/glam_matrix.rs"] +mod glam_matrix; +#[path = "../common/glam_point.rs"] +mod glam_point; +#[path = "../common/glam_quaternion.rs"] +mod glam_quaternion; +#[path = "../common/glam_rotation.rs"] +mod glam_rotation; +#[path = "../common/glam_similarity.rs"] +mod glam_similarity; +#[path = "../common/glam_translation.rs"] +mod glam_translation; +#[path = "../common/glam_unit_complex.rs"] +mod glam_unit_complex; + +pub(self) use glam024 as glam;