Well I have my code below: but basically it uses Quads to draw a thick line, quad[0] and quad[3]= starting position, quad[1] and quad[2]= ending position, quad[3] and quad [2] y positions += the line thickness. Then set a texture to it and draw.
#define LINETHICKNESS 32
#define NUMBEROFPOSITIONS 5
mainWindow->clear();
vector<Vector2f> positions;
positions.push_back(sf::Vector2f(startingXPos,startingYPos));
//fill vector fill of positions to hit
positions.push_back(sf::Vector2f(endXPos,endYPos));
sf::Texture texture1;
texture1.loadFromFile("images.jpg");
sf::VertexArray lines(sf::Quads, 4);
sf::VertexArray lines2(sf::Quads, 4);
for(int i = 1; i < NUMBEROFPOSITIONS; i++)
{
lines[0] = positions[i-1];
lines[3] = positions[i-1];
lines[1] = positions[i];
lines[2] = positions[i];
lines[3].position.y += LINETHICKNESS;
lines[2].position.y += LINETHICKNESS;
lines[0].texCoords = sf::Vector2f(0,0);
lines[1].texCoords = sf::Vector2f(400,0);
lines[2].texCoords = sf::Vector2f(400,100);
lines[3].texCoords = sf::Vector2f(0,100);
mainWindow->draw(lines, &texture1);
}
mainWindow->display();