1 2 3 4 5 6 7 8 9 10 11 12 13 14
#pragma once #include <SFML/Graphics.hpp> class Sprite{ public: const unsigned char *image; unsigned int image_len; sf::Texture sf_texture; sf::Sprite sf_sprite; Sprite(const unsigned char *image,unsigned int image_len); };