How to draw lines with a certain amount of thickness
What is the best way to draw lines with a variable amount of thickness开发者_C百科 in the new Direct3D?
The best way to draw patterned/thick lines (and 2D vector shapes generally) with Direct3D 11 is to use Direct2D. With DirectX 11.1 (Windows 8.x or Windows 7 SP1 with KB 2670838) it's trivial to use Direct2D on a Direct3D 11 device. Prior to that, you have to use Direct2D on a Direct3D 10.1 device and shared-surfaces with a Direct3D 11 device (see Surface Sharing Between Windows Graphics APIs)
See this post for some notes with the DirectX 11.1 on Windows 7 scenario.
精彩评论