Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. void draw_line()
  2. {
  3.     for (int i = 0; i < pos.size(); i++)
  4.     {
  5.         for (int j = 0; j < pos.size(); j++)
  6.         {
  7.             if (a[i][j])
  8.             {
  9.                 sf::VertexArray line(sf::Lines);
  10.                 line[0].position = pos[i];
  11.                 line[0].color = sf::Color::Black;
  12.                 line[1].position = pos[j];
  13.                 line[1].color = sf::Color::Black;
  14.                 lines.push_back(line);
  15.             }
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement