I'm trying to make a little 2D rectangle rotate. But, it can also move up. When it does move up, it rotates around the center of the window, like its in orbit. I want it to rotate on its own center point help! I've been using
Code:
glRotate2f(x, 0.0f, 0.0f 1.0f);