Will a DirectX API for C# ever be released?

ThatWasFat

Member
Dec 15, 2001
93
0
0
I have no urge to learn C++, but I want to learn DirectX. With todays computers, I would presume C# would be fast enough for a game. Will MS ever release a DirectX implementation for C#? It seems to be their flagship language.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
You're supposed to be able to import classes, etc written in other languages so there will probably just be a header file (or whatever they call them in C#) that lets you link to the directx libs, you could probably use it now if you knew how.

But I'd stick with C or C++, because if you're writing a game that has to have high FPS you want every bit of speed you can get. I mean games like UT and Q3 even have some embedded asm to make them faster.
 

Argo

Lifer
Apr 8, 2000
10,045
0
0
DirectX is nothing more than a collection of COM objects and interfaces. You can use them from C# right now.
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126


<< DirectX is nothing more than a collection of COM objects and interfaces. You can use them from C# right now. >>

which means it's unmanaged code, so you're crossing the managed/unmanaged boundary with every DX call right? Just curious, I'm a C++ guy myself, but wouldn't that be a pretty big performance hit over doing it all in unmanaged C++?
 

joohang

Lifer
Oct 22, 2000
12,340
1
0
You might wanna contact Ameesh. He wrote a gaming engine in C# while he was an intern at Microsoft. He now works there.