are there any game or graphics api for vs c# 2012?

Started by
4 comments, last by DividedByZero 11 years, 4 months ago
hi

i want to write a game using visual c# 2012 express. i wonder whether there is any game or graphics API such as Opengl for vs c#?

i googled and search Amazon (for book), but could not find one.

any suggestion is appreciated.
Advertisement
Uh, have you tried DirectX? I recommend starting with 11, as DirectX 9 is phasing out and unless you're supporting old devices you have no reason to use it over DirectX 11 which has a much cleaner API and even has feature sets, which are really a better approach to compatibility than black&white "your card is too old to run this game". Of course this is assuming you're running Windows, but since you mention Visual Studio I think the odds of you using Linux or Mac are rather slim.

As for an actual game engine, then there are lots of them - you can use Unity3D with C#, for instance, but there are many more to choose from.

“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”

I am genuinely surprised that you weren't aware of the C# wrappers for DirectX (SlimDX and SharpDX), but I'd definitely look at those, or XNA, ANX, Monogame, Unity, or the Tao Framework (which is an OpenGL library for C#).

Just about every library I've found for C++ has a C# wrapper version, network libraries, physics libraries, asset loaders, you name it. Just throw "C# wrapper for" in front of any generic library type in google and you'll likely get a few options.

Hazard Pay :: FPS/RTS in SharpDX (gathering dust, retained for... historical purposes)
DeviantArt :: Because right-brain needs love too (also pretty neglected these days)

I'm just going to suggest OpenTK since you mentioned OpenGL. It, like Tao, is an OpenGL library for C#, but I've found it to be a little more up-to-date and much more C#-syntax friendly.

Inspiration from my tea:

"Never wish life were easier. Wish that you were better" -Jim Rohn

soundcloud.com/herwrathmustbedragons

You can use XNA to make games using C# and DirectX. Or Unity would be a better choice; You don't need to mess with the graphics stuff anymore and just concentrate on your game's gameplay mechanism.
If you go with XNA and C# you have a good start towards supporting XBOX, if your program becomes a hit and you want to support the console.

I personally use DX9.0c still. ;)

This topic is closed to new replies.

Advertisement