Is there a function or other method to restore all the OF internal attributes to their default values? So the app is running and you call things like ofNoFill() or ofEnableAlphaBlending(), is there single function that will just set everything back to defaults?
I have an app that is running Lua scripts (using ofxLua). The scripts are really their own entities, so when I switch to a new script I’d love to be able to just init OF to the default state so the script gets a clean slate.
I prefer the following push/pop methods whenever I use color, fill, etc… I think it’s a less known OF function. But, It’s really a time saver as push/popMatrix() methods;