Created
October 14, 2013 09:00
Vector array for particle systems etc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(vector<bloomPop>::iterator it = bloomPool.begin(); it != bloomPool.end();){ // loop through vector with iterator | |
it->update(); // update all objects in vector | |
if(it->time < 0){ /// if condition matches... | |
it = bloomPool.erase(it); // ..go to hell.. | |
}else{ | |
++it; // ..or keep counting and continue! | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment