This PR introduces structured bindings support for improved readability and allows for more concise code
Key Changes:
You are now allowed to use structured bindings even when GLM_FORCE_MEMBERS_XYZW macro is not defined fixing an inconsistency.
You can use structured bindings on mat and qua types
// Before
auto w = obj.getSize().x;
auto h = obj.getSize().y; // calls getSize again.
// After
auto [w, h] = obj.getSize();
```cpp
glm::vec3 v;
auto [x,y,z] = v; // used to be an error unless GLM_FORCE_MEMBERS_XYZW was defined
Structured bindings make the code more readable, especially when accessing multiple members of an temporary from a function call. It reduces verbosity.
This PR introduces structured bindings support for improved readability and allows for more concise code Key Changes:
GLM_FORCE_MEMBERS_XYZW
macro is not defined fixing an inconsistency.mat
andqua
types// After auto [w, h] = obj.getSize();
Structured bindings make the code more readable, especially when accessing multiple members of an temporary from a function call. It reduces verbosity.