3

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

Lightness Races in Orbit
  • 378,754
  • 76
  • 643
  • 1,055
xcrypt
  • 3,276
  • 5
  • 39
  • 63

1 Answers1

1

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.

Chuck Walbourn
  • 38,259
  • 2
  • 58
  • 81