I have a square at the origin. First, I want to rotate it.Then, translate it 5 units away from the origin.
After rotation I want to translate it for a distance of 5. But when I implement the code below. It does not translate it to where I want. What is the correct way to Translate.
glTranslatef( 5,5, 5); glRotatef(45, x,y,z);