1
Feature requests / Re: Add flag to RenderWindow::setSize(), allowing automatic view resize?
« on: August 13, 2013, 08:09:34 am »
In light of that, why not overload the method in RenderWindow(where the class does know sf::View)?
And about only covering half the issue, I assume that if the developer is handling manual resizing they can also handle manually resizing the view. This is more of a convenience request, so if no is no then I'll drop it quick enough.
//RenderWindow.cpp
void setSize(Vector2u size, bool autoResizeView)
{
this->setSize(size);
if(autoResizeView)
{
setView(sf::View(sfVector2u(size.x / 2,size.y / 2), size));
}
}
void setSize(Vector2u size, bool autoResizeView)
{
this->setSize(size);
if(autoResizeView)
{
setView(sf::View(sfVector2u(size.x / 2,size.y / 2), size));
}
}
And about only covering half the issue, I assume that if the developer is handling manual resizing they can also handle manually resizing the view. This is more of a convenience request, so if no is no then I'll drop it quick enough.