开发者

How to draw lines with a certain amount of thickness

开发者 https://www.devze.com 2023-04-03 20:09 出处:网络
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 t

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号