Skip to content

Commit cbe987f

Browse files
Added glam 0.21 update. (#1075)
Co-authored-by: Joe Clay <[email protected]>
1 parent 2877182 commit cbe987f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

content/news/035/index.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,25 @@ cleaner and smaller code.
271271
[ezinput]: https://crates.io/crates/ezinput/versions
272272
[ezinput_creator]: https://github.com/eexsty
273273

274+
### [glam] v0.21
275+
276+
[glam] is a simple and fast linear algebra crate for games and graphics.
277+
278+
This month version 0.21 of glam was released. Because glam is not a generic
279+
library, when support was added for `f64`, `i32` and `u32` types back in glam
280+
0.12, macros were used internally to avoid a lot of code duplication. This
281+
unfortunately obfuscated the internals of glam for anyone who needed to view the
282+
source.
283+
284+
As of the 0.21 release the majority of glam code is now generated using an
285+
offline tool and committed to the repo. The macros that were used to define
286+
glam's internal implementation are gone. This means what users see when reading
287+
docs or stepping through glam in the debugger is plain old Rust code. Many
288+
functions have also been made `const fn` removing the need for macros to create
289+
`const` values.
290+
291+
[glam]: https://github.com/bitshifter/glam-rs
292+
274293
## Popular Workgroup Issues in Github
275294

276295
<!-- Up to 10 links to interesting issues -->

0 commit comments

Comments
 (0)