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