I am trying to have my map stretch when i either full screen it using the box or slowly drag the borders using sf view. I have tried various methods doing that however they all failed. The window resizes but the map stays the same size. Here we have
case sf::Event::Resized:
if (event.type == sf::Event::Resized)
{
sf::FloatRect visibleArea(0, 0, event.size.width, event.size.height);
window.setView(sf::View(visibleArea));
window.draw(map);
/*sf::View view(sf::FloatRect(0, 0, 1000, 600));
window.create(sf::VideoMode(event.size.width, event.size.height, 32),"Tilemap");
view.setSize(event.size.width, event.size.height);
window.setView(view);
window.draw(map);*/
std::cout << "Resized" << std::endl;
}
break;