From a7a76312feba263c1d25d3816fe01145ed24161b Mon Sep 17 00:00:00 2001 From: Cameron Hart Date: Thu, 30 Jun 2022 17:41:54 +1200 Subject: [PATCH 1/2] Added glam 0.21 update. --- content/news/035/index.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/content/news/035/index.md b/content/news/035/index.md index bbaf04d6c..abaac6b01 100644 --- a/content/news/035/index.md +++ b/content/news/035/index.md @@ -126,6 +126,25 @@ variable-width, anti-aliased, or shaped text. [psf2]: https://github.com/Ralith/psf2 [psf2-format]: https://www.win.tue.nl/~aeb/linux/kbd/font-formats-1.html +### [glam] v0.21 + +[glam] is a simple and fast linear algebra crate for games and graphics. + +This month version 0.21 of glam was released. Because glam is not a generic +library when support was added for `f64`, `i32` and `u32` types back in glam +0.12, macros were used internally to avoid a lot of code duplication. This +unfortunately obfuscated the internals of glam for anyone who needed to view the +source. + +As of the 0.21 release the majority of glam code is now generated using an +offline tool and committed to the repo. The macros that were used to define +glam's internal implementation are gone. This means what users see when reading +docs or stepping through glam in the debugger is plain old Rust code. Many +functions have also been made `const fn` removing the need for macros to create +`const` values. + +[glam]: https://github.com/bitshifter/glam-rs + ## Popular Workgroup Issues in Github From e95d4809d38f4db6e93938d3cef8f22c561e3723 Mon Sep 17 00:00:00 2001 From: Joe Clay <27cupsofcoffee@gmail.com> Date: Sat, 2 Jul 2022 11:27:21 +0100 Subject: [PATCH 2/2] Update index.md --- content/news/035/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/news/035/index.md b/content/news/035/index.md index 359093475..ad94c46ec 100644 --- a/content/news/035/index.md +++ b/content/news/035/index.md @@ -182,7 +182,7 @@ cleaner and smaller code. [glam] is a simple and fast linear algebra crate for games and graphics. This month version 0.21 of glam was released. Because glam is not a generic -library when support was added for `f64`, `i32` and `u32` types back in glam +library, when support was added for `f64`, `i32` and `u32` types back in glam 0.12, macros were used internally to avoid a lot of code duplication. This unfortunately obfuscated the internals of glam for anyone who needed to view the source.