[gameprogrammer] DirectX Line and Triangle

Hi,

 

I have a CustomVertex.PositionColored[] object that represents a line and I
use the DrawUserPrimitives(PrimitiveType.LineStrip, this.linePoints.Length -
1, this.linePoints); to draw it on screen

Now I need to draw a small triangle aligned to each line segment and one of
each vertex must "pointy" to the finish point of the segment. How can I do
that?

Something like the attached picture, but not that ugly.

 

Thanks,

Dirso.

Attachment: lines.JPG
Description: JPEG image

Other related posts: