I'm trying to draw some simple lines using the Line() function of sf::Shape.
However, I get no rendering of lines on the screen.
Here's how I'm doing it at the moment:
sf::Shape line;
for(unsigned int i=0;i<layout.size();++i)
{
// get 1st point for line
LayoutPoint p = layout.getPointAt(i);
sprDiamond.SetPosition( p.x, p.y );
App.Draw( sprDiamond ); // this draws no problem
// get 2nd point for line ( % size() because the lines are drawing a 'track' of sorts )
LayoutPoint n = layout.getPointAt( (i+1) % layout.size() );
line.Line( p.x, p.y, n.x, n.y, 10.0f, sf::Color(127,127,127,127) );
App.Draw( line );
}
So I get my positions drawing diamonds, but the lines between each diamond are not being draw.
Am I doing something incorrectly here?