aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Sprite.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-10-23 13:49:20 +0200
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-10-23 13:49:20 +0200
commiteaa05e7a981b0f581f5393882e4753d9294a3dba (patch)
tree4f55cbacf8a70229ec523a45848fe89915d707d5 /src/crepe/api/Sprite.cpp
parentf1857fc2d4ddec71b3f0395903f8446cf96b8d0c (diff)
rendering and asset_manager poc
:
Diffstat (limited to 'src/crepe/api/Sprite.cpp')
-rw-r--r--src/crepe/api/Sprite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/api/Sprite.cpp b/src/crepe/api/Sprite.cpp
index b0c0971..d9e26ab 100644
--- a/src/crepe/api/Sprite.cpp
+++ b/src/crepe/api/Sprite.cpp
@@ -10,8 +10,8 @@ using namespace std;
using namespace crepe;
using namespace crepe::api;
-Sprite::Sprite(unique_ptr<Texture> image, const Color & color,
- const flip_settings & flip) : color(color), flip(flip), sprite_image(std::move(image)) {
+Sprite::Sprite(shared_ptr<Texture> image, const Color & color,
+ const flip_settings & flip) : color(color), flip(flip), sprite_image(image) {
dbg_trace();
}