Hi there,
I have another recurring issue that is probably easy to solve but I haven’t been able to get to the bottom of it after a few days of struggles. I am trying to push_back images from a vector I created and it keeps returning this message: “No member named ‘push_back’ in ‘ofImage_’”
Here is my code for you to have a look. I would be so grateful if some of you can shine some light on this
vector <ofImage> leaves;
for(int i = 0; i < leaves.size(); i++) {
leaves[i].push_back(); //here is where the error is occuring
string imageName = "leaves" + ofToString(i) + ".png";
leaves[i].load(imageName);
leaves[i].resize(ofGetWidth(), ofGetHeight());