I'm working on a 2D game engine project, and I want to implement matrices for my transformations. I'm going to use the GLM library.
Since my game is only 2D, I figured I only need a 3x3 matrix to combine the translation, rotation and scale operations. However,
glm::translation is only overloaded to return a 4x4 matrix, and never a 3x3.
I thought a translation could be performed by using a 3x3 matrix; why does GLM only have a translate function that returns a 4x4 matrix, and not a 3x3 matrix?