xcrypt
xcrypt

Reputation: 3376

How to draw lines with a certain amount of thickness

What is the best way to draw lines with a variable amount of thickness in the new Direct3D?

Upvotes: 3

Views: 1377

Answers (1)

Chuck Walbourn
Chuck Walbourn

Reputation: 41067

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.

Upvotes: 1

Related Questions