From 7f66cd4a9b609f6bf36d005f5e38ef2a57d1c0d3 Mon Sep 17 00:00:00 2001 From: heavydemon21 Date: Wed, 27 Nov 2024 11:15:02 +0100 Subject: removed shared_ptr from sprite --- src/crepe/api/Sprite.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/crepe/api/Sprite.h') diff --git a/src/crepe/api/Sprite.h b/src/crepe/api/Sprite.h index 7d5f4c3..82dc4a7 100644 --- a/src/crepe/api/Sprite.h +++ b/src/crepe/api/Sprite.h @@ -44,7 +44,7 @@ public: * \param color Color tint applied to the sprite. * \param flip Flip settings for horizontal and vertical orientation. */ - Sprite(game_object_id_t id, const std::shared_ptr image, const Color & color, + Sprite(game_object_id_t id, const Texture & image, const Color & color, const FlipSettings & flip); /** @@ -53,7 +53,7 @@ public: ~Sprite(); //! Texture used for the sprite - const std::shared_ptr sprite_image; + const Texture & sprite_image; //! Color tint of the sprite Color color; //! Flip settings for the sprite -- cgit v1.2.3