void ofReloadAllImageTextures(){ set<ofImage *>::iterator it; for(it=all_images().begin(); it!=all_images().end(); it++){ (*it)->reloadTexture(); } set<ofFloatImage *>::iterator f_it; for(f_it=all_float_images().begin(); f_it!=all_float_images().end(); f_it++){ (*f_it)->reloadTexture(); } }
void ofReloadAllImageTextures(){ for(auto img: all_images()){ img->update(); } for(auto img: all_short_images()){ img->update(); } for(auto img: all_float_images()){ img->update(); } }
static void unregisterImage(ofImage * img){ all_images().erase(img); }
static void registerImage(ofImage * img){ all_images().insert(img); }