I have a class that is derived from Drawble
class UserInterface : public sf::Drawable
And the virtual function draw
Is it possible to change the target view from the draw function like this?
void UserInterface::draw(sf::RenderTarget& target, sf::RenderStates states) const {
target.setView(newview);
target.draw(somesprite);
}
This is what I've tried but nothing will successfully draw to newview.
I can provide more information if needed.
Thanks for any help