Hi, I'm new to c++, and now I need to plot a line according to several points(x,y). Is there any easy library i can use? It doesn't need to be fancy, just need to get the line.
sf::Vertex line[]=
{
sf::Vertex(sf::Vector2f(50,50)); // starting point
sf::Vertex(sf::Vector2f(200,200)); // ending point
};
//. . .
// somewhere in the game loop
window.draw(line,2,sf::Lines);