16
Graphics / Re: Drawing vertexarrays always start from 0,0
« on: January 05, 2013, 03:11:55 am »
That did the trick, Thanks!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
sf::View view = sf::View(sf::FloatRect(0,0,w,h));
float a = h/(initialHeight*2);
view.SetViewport(sf::FloatRect(0,(-a+1),w/initialWidth,h/initialHeight));
sf::RenderWindow::SetView(view);