C#

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
StarFoG
Posts: 1
Joined: Tue Nov 25, 2003 1:21 pm

C#

Post by StarFoG »

Hi,

I want to create a program in C#, using the Irrlicht engine. Is this possible, and if so, can anyone teach me how to set up VisualStudio.Net to do this?

Thanks
___|\___\0/___
www.VoaX.com
El Greñen
Posts: 1
Joined: Tue Nov 25, 2003 1:07 pm

Post by El Greñen »

This will propably not so easy as you wished it were.

The problem is that the irrlicht.dll is an unmanaged C++ dll (and not an COM object). This means that you can't use it natively, of course, but you can also - as it is no COM object - not access it via COM object interoperation. Platform invocation services (with which you can get access to unmanaged WIN32 dlls) won't help you much, either, as the irrlicht.dll does not only contain C functions but mainly C++ classes.

The easiest approach would probably be the following: Build a small C++ managed assembly that mirrors the structure of the Irrlicht classes (or at least the classes you need), include the Irrlicht library as unmanaged code and pass all calls of your mirrored managed classes directly to the unmanaged Irrlicht functions. Then you can use this assembly in C#.

Of course this would give you an additional layer of overhead (and the need to do some C++), but I don't see any other solution besides reimplementing Irrlicht in C# using managed DirectX (which would be an interesting project, as I'd like to know if the .NET corner guys are right when they claim that managed DirectX allows nearly the same performance as usual DirectX).
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Some time ago, I thought about writing a small wrapper with managed code for making Irrlicht available for .NET languages like C#, VB.Net, and so on, especially because I like C# very much. But it would be really a lot work, and it does not really make sence now, because Irrlicht's interface will change a lot until it's way to 1.0, I fear. But maybe someone would like to do this job, I would appreciate it. ;)
Bobo Rasta
Posts: 2
Joined: Tue Nov 25, 2003 12:27 pm
Location: Cologne, Germany

Post by Bobo Rasta »

When is the 1.0 going to be release or better: how many version will there be between the next version 0.5 and 1.0? Will 1.0 be the next release after 0.5 or will there be 0.6, 0.7, 0.8, 0.9, 0.95, 0.96... as in other engines like Revolution 3D ??? :wink:
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Good question. Difficult to answer. I hope to keep the version numbers increasing they way they did until now. So like: 0.4.2, 0.5., 0.5.1, 0.6, ... 0.9.2, 1.0. But nowbody knows what the future will bring. :)
Post Reply