diff options
author | jaroWMR <jarorutjes07@gmail.com> | 2024-10-23 20:03:18 +0200 |
---|---|---|
committer | jaroWMR <jarorutjes07@gmail.com> | 2024-10-23 20:03:18 +0200 |
commit | 3789031ac520b393969bbedd55444e3fd2b7f1fa (patch) | |
tree | 212f78845ae1f8972a96636e8425b080a64c7e05 /src/crepe/api/Sprite.cpp | |
parent | edbb6c892299e3b7f93638abcc9e55b2cfce2358 (diff) | |
parent | c9246515fe785563411e9170aedd0231165ab988 (diff) |
merge with niels/rendering
Diffstat (limited to 'src/crepe/api/Sprite.cpp')
-rw-r--r-- | src/crepe/api/Sprite.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/crepe/api/Sprite.cpp b/src/crepe/api/Sprite.cpp index d9e26ab..3cc263e 100644 --- a/src/crepe/api/Sprite.cpp +++ b/src/crepe/api/Sprite.cpp @@ -1,8 +1,10 @@ #include "Sprite.h" +#include "Component.h" #include "api/Texture.h" #include "util/log.h" +#include <cstdint> #include <memory> #include <utility> @@ -10,8 +12,8 @@ using namespace std; using namespace crepe; using namespace crepe::api; -Sprite::Sprite(shared_ptr<Texture> image, const Color & color, - const flip_settings & flip) : color(color), flip(flip), sprite_image(image) { +Sprite::Sprite(uint32_t id, shared_ptr<Texture> image, const Color & color, + const flip_settings & flip) : Component(id), color(color), flip(flip), sprite_image(image) { dbg_trace(); } |