I’d like to send informations from a class (oscTest.h and .cpp) to another class (like makeItReacts.h and cpp) , but initializing and updating my oscTest in my ofApp.cpp.
For more details, you can read this :
oscTest.h class and oscTest.cpp contains basic operations and get some informations (myOscInformationFloat) based on the exemple
Then, I’ve got my ofApp.cpp which initialize my osc with :
I’m able to send informations from oscTest to my OfApp.cpp by creating in my ofApp.h file :
and then getting it by
But I’ve got another class, makeItReacts.h and makeItReacts.cpp and I want to receive myOscInformationFloat into it, but I can’t because oscTest.setup(); oscTest.draw(); and oscTest.update() are already used in my ofApp.h
So, to resume I’d like to send myOscInformationFloat from oscTest to makeItReacts.cpp, but initializing and updating oscTest in my ofApp.cpp