Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

OpenGL Mathematics (GLM) Library

📅 2014-Oct-29 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 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:

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.