I do not get how to load a image into a sprite...
sf::Image iBackgrnd;
if (!iBackgrnd.loadFromFile("board.png"))
return EXIT_FAILURE;
sf::Sprite backgrnd;
// backgrnd.setImage(iBackgrnd); // - No longer works.... what do I do here instead?
Like this works...
sf::Texture iBackgrnd;
if (!iBackgrnd.loadFromFile("board.png"))
return EXIT_FAILURE;
sf::Sprite backgrnd;
backgrnd.setTexture(iBackgrnd);
butthen.. what is Image used for? and how... the documentation says they are diffrent.. but I am not sure i understand how image is used now