Reputation: 41
How do I draw a 2d line with directX9?
Upvotes: 0
Views: 452
Reputation: 1
Draw(Line, 2, color)
but make sure you add the Direct 9 library and includes in Visual Studio in properties.
Also if you want to learn how to draw in Direct9, 11, 11.1, & 11.2 go here: http://www.directxtutorial.com/. It contains all the information you need to get you started.
Upvotes: -1
Reputation: 41127
Legacy Direct3D 9 'styled lines' were implemented in the deprecated D3DX9 helper library via ID3DXLine
. See Microsoft Docs.
See also this blog post.
Upvotes: 0