how to widen the line primitive?

Nov 2, 2011 at 1:58 PM
Hi,

Can I set the line-width of LineList Primitive in XNA?
Coordinator
Nov 2, 2011 at 2:25 PM
No, you can't.

But there are ways to use triangles to simulate the line width. PrimitiveBatch in Nine has a DrawLine method that can draw a textured line strip with a width, maybe you can try that out.
Nov 2, 2011 at 6:08 PM
Thanks! I’ll have a look at it.
From: [email removed]
Sent: Wednesday, November 02, 2011 9:25 PM
To: [email removed]
Subject: Re: how to widen the line primitive? [nine:278033]

From: yufeih

No, you can't.

But there are ways to use triangles to simulate the line width. PrimitiveBatch in Nine has a DrawLine method that can draw a textured line strip with a width, maybe you can try that out.