oF: share ofFbo between classes

Hi I’m trying to create an fbo instance that is shared with a constructor class and my main ofApp.cpp I’ve tried declaring it in either .h file, with no success so far in having it recognized in both files…

how are these classes instances related to each other?
I mean, is the instance of constructor class (as you called it) declared in ofApp.h?
Usually you will pass a pointer to the object you want to share or much safer a shared_ptr.
if you share some code it would be easier to help

1 Like