1
General / Window Viewport - Multiple Questions
« on: December 13, 2011, 04:21:52 pm »
A view is a 2D rectangle of a scene which is plasted into a viewport, what you physically see (from what I understand anyways). I wrote an example: http://codepad.org/R9sAGQry (Yes, I know the Size class is redundant). It appears to draw correctly to the window, however resizing to smaller sizes seems to cause problems. Why is this?
Also, sf::Window::GetViewport returns IntRect where as sf::View::GetViewport returns FloatRect. Aren't they supposed to be the same thing?
Also, sf::Window::GetViewport returns IntRect where as sf::View::GetViewport returns FloatRect. Aren't they supposed to be the same thing?