Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sf::RenderWindow window(sf::VideoMode(800, 600), "SFML works!");
- sf::Vertex hLine[] =
- {
- sf::Vertex(sf::Vector2f(0, 0)),
- sf::Vertex(sf::Vector2f(150, 0))
- };
- sf::Vertex vLine[] =
- {
- sf::Vertex(sf::Vector2f(0, 0)),
- sf::Vertex(sf::Vector2f(0, 150))
- };
- while (window.isOpen())
- {
- sf::Event event;
- while (window.pollEvent(event))
- {
- if (event.type == sf::Event::Closed)
- window.close();
- }
- window.clear();
- window.draw(hLine, 2, sf::Lines);
- window.draw(vLine, 2, sf::Lines);
- window.display();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement