Hello,
I'm trying to draw a texture as a line. The texture is 4x8 pixels. It is a gradient for a laser line effect. It points right but that might be the problem.
http://imageshack.us/photo/my-images/835/linebody.png/Also I have a rounded end cap texture that must be rotated and placed at the endpoints. It points right but that might be the problem.
http://imageshack.us/photo/my-images/39/linecap.png/I need a function to rotate and stretch the texture so the edges will touch (x,y) and (x2,y2). Then the end caps are rotated and placed on.
I've messed with this for about 2 hours and between C++'s notion of direction in radians, SFML's notion of direction in degrees, and moving sprite x and y origins. Nothing seems to work.
:cry: