Jump to content
  • Advertisement
Sign in to follow this  
8Observer8

Drawing lines and simple shapes by C# and DirectX

This topic is 936 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,

I want to draw lines and simple shapes by C# and DirectX. What can I use to this task? What is the simplest way?

Share this post


Link to post
Share on other sites
Advertisement

All of the mentioned libraries are just wrappers over the low-level DirectX API, so they are almost equally hard to draw 2D primitives. Currently SharpDX is the most actively developed one, I think. Regarding SlimDX, the latest version on their site is from 2012, unless I am mistaken. XNA is frozen by Microsoft and no longer actively developed. There is also the MonoGame project, which is actively developed and has 1:1 feature parity with XNA.

 

If you target Windows desktop, I would recommend using WPF instead for 2D drawing. It uses DirectX under the hood for rendering, but is more high-level than plain DirectX, so drawing 2D primitives can be a lot easier. Another API from Microsoft called Win2D wraps DirectX and offers higher-level abstractions for 2D drawing, but it is targeting universal apps with Windows 8.1 and Windows 10 only. For cross-platform rendering, I can suggest SFML, but I have not used it myself.

Edited by vanka78bg

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!