Add support for conversion with glam 0.16 and 0.17

This commit is contained in:
Sébastien Crozet 2021-08-08 12:37:02 +02:00
parent 79ab3c3dab
commit bd9e0fb72c
4 changed files with 44 additions and 0 deletions

View File

@ -39,6 +39,8 @@ convert-bytemuck = [ "bytemuck" ]
convert-glam013 = [ "glam013" ] convert-glam013 = [ "glam013" ]
convert-glam014 = [ "glam014" ] convert-glam014 = [ "glam014" ]
convert-glam015 = [ "glam015" ] convert-glam015 = [ "glam015" ]
convert-glam016 = [ "glam016" ]
convert-glam017 = [ "glam017" ]
# Serialization # Serialization
## To use serde in a #[no-std] environment, enable the ## To use serde in a #[no-std] environment, enable the
@ -87,6 +89,8 @@ proptest = { version = "1", optional = true, default-features = false,
glam013 = { package = "glam", version = "0.13", optional = true } glam013 = { package = "glam", version = "0.13", optional = true }
glam014 = { package = "glam", version = "0.14", optional = true } glam014 = { package = "glam", version = "0.14", optional = true }
glam015 = { package = "glam", version = "0.15", optional = true } glam015 = { package = "glam", version = "0.15", optional = true }
glam016 = { package = "glam", version = "0.16", optional = true }
glam017 = { package = "glam", version = "0.17", optional = true }
[dev-dependencies] [dev-dependencies]

View File

@ -4,3 +4,7 @@ mod v013;
mod v014; mod v014;
#[cfg(feature = "glam015")] #[cfg(feature = "glam015")]
mod v015; mod v015;
#[cfg(feature = "glam016")]
mod v016;
#[cfg(feature = "glam017")]
mod v017;

18
src/third_party/glam/v016/mod.rs vendored Normal file
View File

@ -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 glam016 as glam;

18
src/third_party/glam/v017/mod.rs vendored Normal file
View File

@ -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 glam017 as glam;