[gameprogrammer] DirectX Line and Triangle
- From: "Edilson Vasconcelos de Melo Junior" <dirso@xxxxxxxxxxxxxxxxxx>
- To: <gameprogrammer@xxxxxxxxxxxxx>
- Date: Mon, 14 Jul 2008 17:14:54 -0300
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
- Follow-Ups:
- [gameprogrammer] Re: DirectX Line and Triangle
- From: Alan Wolfe
- [gameprogrammer] Re: DirectX Line and Triangle
Other related posts:
- » [gameprogrammer] DirectX Line and Triangle
- » [gameprogrammer] Re: DirectX Line and Triangle