I need to make a square rotate in circles around the center of the screen, and I did it using the functions glRotate and glTranslate.
Now I have to do the same thing using glMultMatrix instead. Could anybody help me?
Here’s the code using glRotate and glTranslate:
glLoadIdentity(); glRotatef(angle, 0.0, 0.0, 1.0); glTranslatef(0, -0.5, 0); glRectf(-0.05, 0.05, 0.05, -0.05);
The variable angle increments from time to time to create the animation.