aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Sprite.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-08 20:21:36 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-08 20:21:36 +0100
commit506de66aaecc9b82415dde46058b848e46bc7258 (patch)
treea3f2427b0882d07f2d960b7214170533ad241830 /src/crepe/api/Sprite.h
parent7817c85e84560933a33ad86ec3f9ca3d48d327d5 (diff)
nitpicks (merge #27)
Diffstat (limited to 'src/crepe/api/Sprite.h')
-rw-r--r--src/crepe/api/Sprite.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/crepe/api/Sprite.h b/src/crepe/api/Sprite.h
index 1db32d7..deb3f93 100644
--- a/src/crepe/api/Sprite.h
+++ b/src/crepe/api/Sprite.h
@@ -4,22 +4,21 @@
#include <memory>
#include "Color.h"
-#include "Texture.h"
#include "Component.h"
-
+#include "Texture.h"
namespace crepe {
struct Rect {
int w = 0;
- int h = 0;
- int x = 0;
- int y = 0;
+ int h = 0;
+ int x = 0;
+ int y = 0;
};
struct FlipSettings {
- bool flip_x = false;
- bool flip_y = false;
+ bool flip_x = false;
+ bool flip_y = false;
};
class SDLContext;
@@ -35,7 +34,6 @@ class AnimatorSystem;
class Sprite : public Component {
public:
-
// TODO: Loek comment in github #27 will be looked another time
// about shared_ptr Texture
/**
@@ -53,10 +51,9 @@ public:
*/
~Sprite();
-
//! Texture used for the sprite
const std::shared_ptr<Texture> sprite_image;
- //! Color tint of the sprite
+ //! Color tint of the sprite
Color color;
//! Flip settings for the sprite
FlipSettings flip;