I have a program that loads and displays an object file. It is then supposed to be able to be moved around the screen by the user and rotated arounds its center by the user.
I am keeping track of the rotation and translation data for the object in a struct.
Here is how i am trying to implement this:
glLoadIdentity() glTranslate(translation data) glRotate() drawObject() glTranslate(-translation data)
when i do this, the translations work fine, but the object doesn’t rotate in place like it should. Any suggestions?