spworld

11-17-2003, 05:31 AM

Hi there,

Suppose that I want to rotate an object about the point say (525,300) ,90 degrees.Ho wthis can be implemented in openGL.I learned that I should transate the object to the origin (0,0),rotate,and then translate bac to my chosen point.However.I couldn't apply this correctly.Can any one indicate to me the steps with code.

Thanks in advance

Suppose that I want to rotate an object about the point say (525,300) ,90 degrees.Ho wthis can be implemented in openGL.I learned that I should transate the object to the origin (0,0),rotate,and then translate bac to my chosen point.However.I couldn't apply this correctly.Can any one indicate to me the steps with code.

Thanks in advance