aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Sprite.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-23 21:54:28 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-23 21:54:28 +0200
commit9b7be419c9dcc6ebd1e504713c7b2676ca3d2fdf (patch)
tree97a2fc5ce1ec1345bd6f44889682ea9a2ffafd76 /src/crepe/api/Sprite.h
parent080ad535e6fc6666b919b1a21b6986aaf9b678eb (diff)
`clang-format`
Diffstat (limited to 'src/crepe/api/Sprite.h')
-rw-r--r--src/crepe/api/Sprite.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/crepe/api/Sprite.h b/src/crepe/api/Sprite.h
index 3d9e911..7a701e3 100644
--- a/src/crepe/api/Sprite.h
+++ b/src/crepe/api/Sprite.h
@@ -7,24 +7,23 @@
#include <cstdint>
#include <memory>
-
namespace crepe::api {
-struct flip_settings{
- bool flip_x: 1;
- bool flip_y : 1;
+struct FlipSettings {
+ bool flip_x = 1;
+ bool flip_y = 1;
};
class Sprite : public Component {
-
+
public:
- Sprite(uint32_t game_id, std::shared_ptr<Texture> image, const Color& color, const flip_settings& flip );
+ Sprite(uint32_t game_id, std::shared_ptr<Texture> image,
+ const Color & color, const FlipSettings & flip);
~Sprite();
std::shared_ptr<Texture> sprite_image;
Color color;
- flip_settings flip;
+ FlipSettings flip;
uint8_t sorting_in_layer;
uint8_t order_in_layer;
-
};
-}
+} // namespace crepe::api