from a .cpp file, for example, "particle.cpp" you can do two things:
- a) include "ofApp.h" (so you know what's inside the ofApp)
- b) cast the ofGetAppPtr as a ptr
you can't include ofApp.h inside another .h file, as you would recursive includes (ie, ofApp includes particle, particle includes ofApp), but putting it in the .cpp is fine.