Transformations using GLM
We'll be looking at making transformations to our shape and the texture applied to it. To do the transformations, we'll be using the OpenGL Mathematics library that is GLM. For transformations, we need to use vectors and matrices, and GLM handles a lot of that in the backend for us. All we have to do is call the correct method (for example, translate or rotate), and it'll do the appropriate matrices and vector transformations for us.
Note
It is recommended that you go to learnopengl.com and open.gl. These sites have got some great resources that showcase all the different vectors and matrices and how to use them, and it goes into more depth about the mathematics behind it. So, if you're interested, you should definitely visit these sites.
Setting up a project to use GLM on Windows / Mac
So, to begin with, we need to download and install the GLM library onto our system. It's very similar to installing the other frameworks that we learned to install in the previous...