#include #include "Component.h" #include "Texture.h" #include "facade/SDLContext.h" #include "../util/log.h" #include "Sprite.h" using namespace std; using namespace crepe; Sprite::Sprite(game_object_id_t id, const shared_ptr image, const Color & color, const FlipSettings & flip) : Component(id), color(color), flip(flip), sprite_image(image) { dbg_trace(); this->sprite_rect.w = sprite_image->get_width(); this->sprite_rect.h = sprite_image->get_height(); } Sprite::~Sprite() { dbg_trace(); }