In my program I implemented a maya style camera. I would like to add a reset button to it. However my problem is that I would like to be able to reset the scene several times. At the moment I set a boolen variable = false when a button is pressed, which then calls the following code in my DrawGLScene function:
if (reset == false)
{glLoadIdentity();
gluLookAt(…);}
is there a better way of doing this because at the moment I can only reset the scene once (cause as soon as I press the button the Boolean value goes to false) and even if I use the same Translation&Rotation functions afterwards it is still a bit awkward. I am pretty new to coding and just can’t think of another way. Could anyone help to do this in a nice way a beginner would understand?? Thanks!