//Window
_settings.antialiasingLevel = 8;
_window.create(_gameBorder, "Game", sf::Style::None, _settings);
_window.setVerticalSyncEnabled(true);
//Set window to be visible
_window.setPosition(sf::Vector2i(_window.getPosition().x, _window.getPosition().y -_screenBorder.height*0.02));
_view.setSize(sf::Vector2f(std::floor(32*5),std::floor(32*5) ) );
void GameEngine::updateView()
{
_view.move(1, 1);
_view.setSize(std::floor(_view.getSize().x), std::floor(_view.getSize().y));
_view.setCenter(std::floor(_view.getCenter().x) , std::floor(_view.getCenter().y) );
_window.setView(_view);
}
Here is all of the relevant code(I think?). What do you mean by align it to the window?