#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>
#include <Windows.h>
int main()
{
sf::RenderWindow window1(sf::VideoMode(800, 700), "window");
sf::Texture tx1;
tx1.loadFromFile("pic.jpg");
sf::Sprite st1;
st1.setTexture(tx1);
while (window1.isOpen())
{
sf::Event event1;
while (window1.pollEvent(event1))
{
if (event1.type == sf::Event::Closed)
window1.close();
}
window1.clear(sf::Color::Green);
sf::View view1(sf::Vector2f(350, 300), sf::Vector2f(300, 300));
view1.setCenter(200, 200);
view1.move(400, 400);
window1.draw(st1);
window1.display();
}
}
How do I make it work?