I am writing iphone application where in I need to rotate cube. The rotation on vertical and horizontal axis is working fine. Also, rotating cube from bottom right to top left and from top left to bottom right is working fine.(I am using glrotateef(angle, 1.0, 1.0, 0.0) to rotate from top left to bottom right).
The issue here is, I want to rotate from bottom left to top right and from top right to bottom left. And I could not get the solution. I tried different approaches like
glRotateef(angle, -1.0, -1.0, 0.0) glRotateef(angle, -1.0, -1.0, 0.0) etc.. All of them are not working. Please guide me on this (what is the exact rotation I need to use). Thanks in advance.