Is there a possibility in sfml to copy sf::Shape to sf::Image(I know there is sf::Shape::setTexture method, but I want to do it in opposite way). I need this to save Image into file without creating sf::RenderWindow Object.
Somehow like that
sf::RectangleShape Shape;
Shape.setSize(sf::Vector2f(50,50));
Shape.setFillColor(sf::Color::Red);
sf::Image Image;
Image.getShape(Shape); //This is my imaginary method ;p
Image.saveToFile("Image.bmp");
Thank you in advance