#pragma once #include "Component.h" #include "api/Color.h" #include "api/Texture.h" #include #include #include namespace crepe::api { struct FlipSettings { bool flip_x = 1; bool flip_y = 1; }; class Sprite : public Component { public: Sprite(uint32_t game_id, std::shared_ptr image, const Color & color, const FlipSettings & flip); ~Sprite(); std::shared_ptr sprite_image; Color color; FlipSettings flip; uint8_t sorting_in_layer; uint8_t order_in_layer; }; } // namespace crepe::api