sf::View isn't working right for me since the latest revision(1509) (I assume due to the sf::Rect definition change). For example, in the code below I would expect that I am defining a view starting at x,y = 1,1 with width,height = 2,2 so that that the square starting at 1,1 with width,height = 2,2 should fill the screen. Instead it fills the bottom right part only. SetViewport has similar problems.
#include <SFML/Graphics.hpp>
int main(){
sf::RenderWindow app;
app.Create(sf::VideoMode(500, 500, 32), "");
sf::View view(sf::FloatRect(1, 1, 2, 2));
app.SetView(view);
sf::Shape rect = sf::Shape::Rectangle(1, 1, 2, 2, sf::Color(250,0,0));
while (app.IsOpened()){
sf::Event event;
while (app.GetEvent(event)){
if (event.Type == sf::Event::Closed) app.Close();
}
app.Clear();
app.Draw(rect);
app.Display();
}
return EXIT_SUCCESS;
}