We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
glm types should define an overloaded unary operator+ to support the positive sign, which sometimes really improves the clarity and readability.
The simplest example of this is a lookup table with vector directions, like:
const vec2 axis_x(1, 0); const vec2 axis_y(0, 1); const vec2 LUT[4] = { - axis_x, + axis_x, - axis_y, + axis_y };
The text was updated successfully, but these errors were encountered:
This is a bug. GLSL supports it so GLM should support it too.
Thanks for reporting! Christophe
Sorry, something went wrong.
- Added unary + operator #435
32fc69e
This bug has been fixed in master branch for GLM 0.9.8 release.
Thanks for contributing, Christophe
Added unary + operator #435
1709e9a
ebdb7aa
Groovounet
No branches or pull requests
glm types should define an overloaded unary operator+ to support the positive sign, which sometimes really improves the clarity and readability.
The simplest example of this is a lookup table with vector directions, like:
const vec2 axis_x(1, 0);
const vec2 axis_y(0, 1);
const vec2 LUT[4] = { - axis_x, + axis_x, - axis_y, + axis_y };
The text was updated successfully, but these errors were encountered: