What is the best way to draw an object at a specific pixel location rather than world position? I want to draw a sf::Text in one corner regardless of zoom, rotation, translation of the main view or the size of the window. So far, I have done this:
sf::View savedView = window.getView();
sf::View tempView;
tempView.reset(sf::FloatRect(0, 0, window.getSize().x, window.getSize().y));
// ....
window.setView(tempView);
window.draw(text);
window.setView(savedView);
This works, but is it the recommended way? Is there a faster/better way?
Thanks,
lmorsino