Hello,
I have some different effects in one application.
Each effect needs different GL settings like glEnable(GL_LIGHTING), glEnable(GL_BLEND) and so on…
Before I start an effect, I would like to save all current GL settings and reload them after the effect is finished.
Now i have two functions like:
setupSettingsForMe(){ glEnable(something) }
and
setupSettingsForThem() { glDisable(something) }