Opengl Rotate Triangle 2d, Using the glrotatef() function rotates the figure by a specified angle with respect to the origin.