diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-10-23 13:49:20 +0200 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-10-23 13:49:20 +0200 |
commit | eaa05e7a981b0f581f5393882e4753d9294a3dba (patch) | |
tree | 4f55cbacf8a70229ec523a45848fe89915d707d5 /src/crepe/api/Sprite.h | |
parent | f1857fc2d4ddec71b3f0395903f8446cf96b8d0c (diff) |
rendering and asset_manager poc
:
Diffstat (limited to 'src/crepe/api/Sprite.h')
-rw-r--r-- | src/crepe/api/Sprite.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/api/Sprite.h b/src/crepe/api/Sprite.h index 3dd9b4a..920f91e 100644 --- a/src/crepe/api/Sprite.h +++ b/src/crepe/api/Sprite.h @@ -17,9 +17,9 @@ struct flip_settings{ class Sprite : public Component { public: - Sprite(std::unique_ptr<Texture> image, const Color& color, const flip_settings& flip ); + Sprite(std::shared_ptr<Texture> image, const Color& color, const flip_settings& flip ); ~Sprite(); - std::unique_ptr<Texture> sprite_image; + std::shared_ptr<Texture> sprite_image; Color color; flip_settings flip; uint8_t sorting_in_layer; |