Put texture to rectLine

I use rectLine to draw a line between 2 coordinates. The problem is, that this line isn’t so fancy, so I would like to repeat on it a specified texture. Can you please help me in this?

Do you use Graphics2D? If so, you can use drawImage().

I see so, that it has only 2 coordinates in parameters list.

If you’re talking about libgdx’s shaperenderer, that’s for shapes only. If you want to draw a texture like that, you’ll have to set the width/height and rotate it.

Yes, but how to set the “source” and “destination” coordinates?

Yes, I would like to loop a shape, but I don’t know, how to set source and destination coordinates.