Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering how one would go about duplicating the same sprite in SFML, instead of having to create new sprites every time I would want have another sprite of the same image. Just some basic thought process or pseudo-code is what I'm looking for.


share|improve this question
up vote 3 down vote accepted


The whole idea of SFML sprites is to share a heavyweight object (texture) between all lightweight(sprite) that requires it. That is already the arguably best way.

Of course, there is one alternative, you can reuse the same sprite by just sharing it across your entities, and each one sets a new tranform before re-rendering the sprite. Im not even sure if that is anyway better than the first method, but seems to be what you want.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.