diff options
Diffstat (limited to 'src/crepe/api/Sprite.h')
-rw-r--r-- | src/crepe/api/Sprite.h | 17 |
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 |