Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include <iostream>
  2. #include <SFML/Graphics.hpp>
  3. #include <SFML/Audio.hpp>
  4. #include <iostream>
  5. using namespace std;
  6. using namespace sf;
  7.  
  8.  
  9. int main()
  10. {
  11. RenderWindow window, window2;
  12. window.create(VideoMode(300, 300), "EhB Fighter");
  13.  
  14. Event event;
  15. Texture link;
  16. link.loadFromFile("C:\Users\islam.chamelev\Downloads\link.png");
  17.  
  18. setSmooth(true);
  19.  
  20. while (window.isOpen())
  21. {
  22. while (window.pollEvent(event)) {
  23. if (event.type == Event::Closed) {
  24. window.close();
  25. }
  26. }
  27.  
  28.  
  29.  
  30. }
  31. return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement