summaryrefslogtreecommitdiff
path: root/src/sprite.cpp
AgeCommit message (Collapse)AuthorFilesLines
2025-02-26Use ResourceRef for all resource typesThorbjørn Lindeijer1-5/+3
All ResourceManager functions that load resources now return respective ResourceRef values, which helps to make sure resources are properly cleaned up. The Sound class was cleaned up and now also allows SoundEffect resources to be unloaded. The Animation class now keeps its ImageSet loaded only as long as necessary. Previously, SimpleAnimation and ParticleEmitter would keep the ImageSet loaded indefinitely by never decreasing its reference count. Reduced duplicated animation loading code between SimpleAnimation and ParticleEmitter.
2025-02-25Some code cleanups related to status iconsThorbjørn Lindeijer1-1/+1
Fixed leaking of Sprite instances.
2025-02-22Fix incorrect reset animation.Andrei Karas1-3/+4
Cherry-picked from M+ commit 6b92b52308211bc61320e3c8062c59e7b4e81f65.
2025-02-21Merged AnimatedSprite into SpriteThorbjørn Lindeijer1-0/+207
With AnimatedSprite being the only implementation of the Sprite interface, there was no longer a point in separating these.