aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Sprite.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-08 12:16:41 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-08 12:16:41 +0100
commit2e0b75fc51c4ef025f6b74f7f1648d04039bb955 (patch)
tree8f77d29c65b5b4e99b17accc5aea48c1115e10e4 /src/crepe/api/Sprite.h
parent9f029bf458d43492093507f9b59a67f4f22c283c (diff)
fixed the includes and const settings
Diffstat (limited to 'src/crepe/api/Sprite.h')
-rw-r--r--src/crepe/api/Sprite.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crepe/api/Sprite.h b/src/crepe/api/Sprite.h
index 2e8b52a..6f83ac8 100644
--- a/src/crepe/api/Sprite.h
+++ b/src/crepe/api/Sprite.h
@@ -5,9 +5,9 @@
#include "api/Color.h"
#include "api/Texture.h"
-
#include "Component.h"
+
namespace crepe {
/**
@@ -62,7 +62,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, std::shared_ptr<Texture> image,
+ Sprite(game_object_id_t id, const std::shared_ptr<Texture> image,
const Color & color, const FlipSettings & flip);
/**
@@ -72,7 +72,7 @@ public:
//! Texture used for the sprite
- std::shared_ptr<Texture> sprite_image;
+ const std::shared_ptr<Texture> sprite_image;
//! Color tint of the sprite
Color color;
//! Flip settings for the sprite