#include "sprite.h" Sprite::Sprite(const unsigned char *image,unsigned int image_len) :image(image),image_len(image_len){ sf_texture.loadFromMemory(image,image_len); sf_sprite.setTexture(sf_texture); }