change line width in primitive batch

Mar 28, 2013 at 10:56 AM
hello
how can I set the line width when I draw primitives (i.e DrawLine())
Mar 28, 2013 at 10:57 AM
note that iam working on DirectXTK on Windows Phone 8
Coordinator
Mar 28, 2013 at 5:12 PM
DirectX line primitives are only ever a single pixel in width. To draw more complex shapes, you need to build up the neccesary geometry from a series of triangles.

Direct2D is usually the easiest way to do such things, but unfortunately that is not available on Windows Phone 8.

For a lower level approach using Direct3D, you might find this code useful as a starting point: http://blogs.msdn.com/b/manders/archive/2007/01/07/lines-2d-thick-rounded-line-segments-for-xna-programs.aspx (it's C#/XNA, but the same ideas would apply to native C++ D3D)