Just working with an example project which makes a call to ofClear, and I’m not exactly sure what it does. Can anyone explain it to me?
Here’s an example of the usage I’m seeing:
maskFbo.begin(); //type ofFbo
camMesh.draw(); //type ofMesh
ofClear clears the current drawing surface.
usually this means it will clear the screen, but if you’re inside an FBO (ie between myFbo.begin() and myFbo.end() ) it will clear the FBO.
note that if you have ofSetBackgroundAuto(true) which is the default, the screen is cleared automatically for you before draw() is called. call ofSetBackgroundAuto(false) in setup to to see the difference