Frequently Asked Questions

How do I draw a line?

The general answer is: use RectangleShape. If your line has a width of one pixel, you can also use RenderTarget.draw() with two vertices and the LINES primitive.