Advertisement
SSS_Krut

image error

May 9th, 2021
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.67 KB | None | 0 0
  1. int main()
  2. {
  3.     using namespace std;
  4.     using namespace sf;
  5.     ContextSettings settings;
  6.     setlocale(LC_ALL, "Russian");
  7.     sf::RenderWindow window(sf::VideoMode(800, 600), "Spread of viruses      fps");
  8.     view.reset(sf::FloatRect(0, 0, 800, 600));
  9.     cout << "_0_";
  10.     window.setActive();
  11.     Image icon; icon.loadFromFile("Virus_img3.jpg");
  12.     cout << "_1_";
  13.     window.setIcon(icon.getSize().x, icon.getSize().y, icon.getPixelsPtr());
  14.     icon.loadFromFile("Graphic_img.png");
  15.     window2.setIcon(icon.getSize().x, icon.getSize().y, icon.getPixelsPtr());
  16.     icon.loadFromFile("Options_img.png");
  17.     window3.setIcon(icon.getSize().x, icon.getSize().y, icon.getPixelsPtr());
  18.     Clock clock;
  19. //...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement