📅 2014-Oct-29 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ glm, opengl ⬩ 📚 Archive
OpenGL Mathematics (GLM) is a library of mathematics primitives and functions that can be useful in OpenGL, shader, CUDA and other graphics related code. Everyone ends up writing their own version of this code, often with errors and waste of time. GLM could be a good choice in such cases. Note that GLM is not as featured or complex as Eigen.
Briefly, here are the types and operations you can get in GLM:
vec3, vec4
mat3, mat4
Vector operations like normalize, bit swizzling
Matrix operations
Use of matrices for projection and lighting operations
Installing GLM library is easy:
$ sudo apt install libglm-dev
GLM is a template header library. So, no library file needs to be specified for the linking stage of compilation.