So I have an vector that stores multiple asteroids sprites, in its current form it copy's the original asteroid sprite into the vector, could I just point to the original sprite?
this how it is at the moment
imgAsteroid.LoadFromFile("Images/asteroid.png");
sprAsteroid.SetImage(imgAsteroid);
sprAsteroid.SetCenter((imgAsteroid.GetWidth())/2,(imgAsteroid.GetHeight())/2);
std::vector<sf::Sprite> roidStore; //vector to store asteroids
so anytime I add an asteroid to the vector I do
roidStore.push_back(sprAsteroid);
is there anyway I can improve the efficiency of this?