Hi,
My application draws axes X, Y and Z.
I utilize GLUT user interface. I do rotation and translation with controls from GLUT.
How can I reset the view to the origin axes ?
Thanks,
Claude
Hi,
My application draws axes X, Y and Z.
I utilize GLUT user interface. I do rotation and translation with controls from GLUT.
How can I reset the view to the origin axes ?
Thanks,
Claude
Use glLoadIdentity() when in modelview matrix mode.
But for translate/rotate it is often better to do that each frame, and then translate/rotate with the total value, instead of doing it incrementally as you seem to be doing currently.