From 8601c655de48e98bebe499c7009cbb189a1982ca Mon Sep 17 00:00:00 2001 From: devil-ira Date: Sat, 5 Nov 2022 00:33:38 +0100 Subject: [PATCH] Support conversion for glam 0.22 --- Cargo.toml | 2 ++ src/third_party/glam/mod.rs | 2 ++ src/third_party/glam/v022/mod.rs | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 src/third_party/glam/v022/mod.rs diff --git a/Cargo.toml b/Cargo.toml index 746b62b3..bcfa07d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,6 +45,7 @@ convert-glam018 = [ "glam018" ] convert-glam019 = [ "glam019" ] convert-glam020 = [ "glam020" ] convert-glam021 = [ "glam021" ] +convert-glam022 = [ "glam022" ] # Serialization ## To use serde in a #[no-std] environment, enable the @@ -98,6 +99,7 @@ glam018 = { package = "glam", version = "0.18", optional = true } glam019 = { package = "glam", version = "0.19", optional = true } glam020 = { package = "glam", version = "0.20", optional = true } glam021 = { package = "glam", version = "0.21", optional = true } +glam022 = { package = "glam", version = "0.22", optional = true } cust_core = { version = "0.1", optional = true } diff --git a/src/third_party/glam/mod.rs b/src/third_party/glam/mod.rs index 06bdcfb7..811e88b2 100644 --- a/src/third_party/glam/mod.rs +++ b/src/third_party/glam/mod.rs @@ -14,3 +14,5 @@ mod v019; mod v020; #[cfg(feature = "glam021")] mod v021; +#[cfg(feature = "glam022")] +mod v022; diff --git a/src/third_party/glam/v022/mod.rs b/src/third_party/glam/v022/mod.rs new file mode 100644 index 00000000..de27f929 --- /dev/null +++ b/src/third_party/glam/v022/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 glam022 as glam;