I have a 2x4 matrix. which represent 4 points of a square. I need to rotate said square by x radians (which obviously can be converted to degrees) with the rotation point/ anchor being the center of the square.
Since OpenGL ES 2.0 has removed the transformation functions (glPush/glPop, glRotate, glTranslate, glScale, etc.) I need to do the rotation myself. Can someone help me write a function to preform the rotation?