Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update glam to latest version #192

Merged
merged 2 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fake/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ rust_decimal = { version = "1.32", default-features = false, optional = true }
bigdecimal-rs = { version = "0.4", package = "bigdecimal", default-features = false, optional = true }
zerocopy = { version = "0.7", optional = true }
rand_core = { version = "0.6", optional = true }
glam = { version = "0.28.0", optional = true }
glam = { version = "0.29.0", optional = true }
url-escape = { version = "0.1", optional = true }
bson = { version = "2.10", optional = true }
url = { version = "2.5.2", optional = true }
Expand Down
12 changes: 11 additions & 1 deletion fake/src/impls/glam/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
use crate::{Dummy, Fake, Faker};
use glam::{Mat4, Vec2, Vec3, Vec4};
use glam::{Mat3, Mat4, Vec2, Vec3, Vec4};

impl Dummy<Faker> for Mat3 {
fn dummy_with_rng<R: rand::Rng + ?Sized>(_f: &Faker, rng: &mut R) -> Self {
let col_1: Vec3 = Faker.fake_with_rng(rng);
let col_2: Vec3 = Faker.fake_with_rng(rng);
let col_3: Vec3 = Faker.fake_with_rng(rng);
Mat3::from_cols(col_1, col_2, col_3)
}
}


impl Dummy<Faker> for Mat4 {
fn dummy_with_rng<R: rand::Rng + ?Sized>(_f: &Faker, rng: &mut R) -> Self {
Expand Down
Loading