Advertisement Jump to content
Sign in to follow this  
Zeffrit

Looking for the best Graphic Library to use with C# (No Xna Please)

This topic is 1866 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'm looking for the best Graphic Library to use with C# for the developing of 2D games. No 3D aspects are needed in any way, even in the future. I do not want to use Xna because Microsoft has abandoned it, and it will no longer be developed upon. I need a Graphic Library which includes support for everything relating to 2D game development at a minimum at least (Graphics, Audio, etc.). And has plenty of resources for learning.

 

Thanks,

Share this post


Link to post
Share on other sites
Advertisement

I actually had that suggested before, and looked into it. The only problem is that there doesn't really seem to be any resources on learning it.

Share this post


Link to post
Share on other sites

For tutorials and resources, go XNA/MonoGame. For 2D, it should be the same. MonoGame is pretty much designed as a drop-in replacement for XNA, so almost any tutorial related to XNA should also apply to MonoGame. There's also Gorgon at http://tape-worm.net/ but I've never tried it and it's no where near as popular as XNA so probably less resources. Feature set looks nice though.

Share this post


Link to post
Share on other sites

MonoGame is the best option I see, even though I never heard of SharpDX or Gorgon the above posters mentioned, may be promising.

 

The problem is XNA is a microsoft product (discontinued) and C# is also a microsoft product. They worked pretty well together and people really didn't consider other options since this combo was actually pretty good. Now that Microsoft killed XNA, C# game development weakened; it'll be several months until other C# engines get to the level of XNA.

 

You can search Engine Lists like this one for other possibilities on C# though.

 

Still, as you only need a Graphics Library, as you said yourself, you can always use a C/C++ library port such as C# SDL.

Edited by dejaime

Share this post


Link to post
Share on other sites

I'd also second SharpDX - if you stick to the lowest possible versions of Direct2D/WIC and you compile for 3.5, your game's installer will basically copy-paste a few files to the target machine (Win7+, could work Vista if you lower the .NET version to 3.0). You no longer need to install the DirectX runtime & WIC, as they are is included in the OS.

However, programming SharpDX requires you to know a lot more about the underlying operating system, and on more than a few places - P/Invoke and Win32 mastery :) Also, what I dislike about SharpDX very much is that every HRESULT is mapped to an exception - even for some pretty routine failing conditions that shouldn't require try-catch blocks. Other than that, the combo of D2D + DWrite + WIC is quite good for 2D games.

Share this post


Link to post
Share on other sites

I use monogame myself right now. There's no need to find documentation about it, as it really just works like xna.

 

The only thing lacking is the content pipeline, so you have to load your stuff yourself. But in case of a 2d situation, That's a one-liner thing anyways.

 

SharpDX is cool, too. Monogame uses it, too :)

Share this post


Link to post
Share on other sites

The problem is XNA is a microsoft product (discontinued) and C# is also a microsoft product. They worked pretty well together and people really didn't consider other options since this combo was actually pretty good. Now that Microsoft killed XNA, C# game development weakened; it'll be several months until other C# engines get to the level of XNA.

 

Actually, the SharpDX Toolkit is pretty much a walk-in replacement feature-for-feature that I've seen.  A few things work differently, but it's mostly the same and at an identical level of abstraction.  I haven't used MonoGame at all, but it was supposed to replace XNA on mono platforms by design, so it should do the same.

 

OP:  I'd recommend either for your purposes.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!