aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Sprite.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api/Sprite.h')
-rw-r--r--src/crepe/api/Sprite.h4
1 files changed, 2 insertions, 2 deletions
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<Texture> 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<Texture> sprite_image;
+ const Texture & sprite_image;
//! Color tint of the sprite
Color color;
//! Flip settings for the sprite