This project has moved and is read-only. For the latest updates, please go here.

change line width in primitive batch

Mar 28, 2013 at 10:56 AM
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
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: (it's C#/XNA, but the same ideas would apply to native C++ D3D)