Hi,
What would be the easiest way to convert what I have here, to display my sprites textures instead of using .loadFromFile?
sf::Http::Request request("image.png", sf::Http::Request::Post);
sf::Http http("http://mysite.com/");
sf::Http::Response response = http.sendRequest(request);
// check the status
if (response.getStatus() == sf::Http::Response::Ok)
{
// check the contents of the response
std::cout << response.getBody() << std::endl;
}
else
{
std::cout << "request failed" << std::endl;
}
This just shows the image.png contents in the console, I want to be able to draw a sprite from fetching the image from the website, is it possible to do this?
Cheers.