Game Development Reference
In-Depth Information
What is a sprite?
You have most likely heard the term
sprite
before. In its very essence, a sprite is a surface
with a texture on it. "But wait…" I hear you saying, "Didn't we just cover that very same
thing?" And my answer is "Yes, but sprites are a bit different." Apart from the
Shape
class, SFML provides a
Sprite
class as well, and that brings us to the question: "How are
they different?"