Can Irrlicht Engine be used with 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
Guest

Can Irrlicht Engine be used with C?

Post by Guest »

Hi I'm new to irrlicht and understand that it is programmed in C++ but was wondering if there was actually a way to access the dll from C instead of c++. I appologize if this has been asked before but I couldn't find it with the searches.

The reason I'm asking is not that I don't have access to c++ compilers or a little know how to use them but most of my programming is in another language the translates into plain C and was just curious if there was a way and how I would go about doing it - to access the library in C.
Gorgon Zola
Posts: 118
Joined: Thu Sep 18, 2003 10:05 pm
Location: switzerland

Post by Gorgon Zola »

No, I'm afraid that will not work, at least not directly.
You would have to provide wrapper code for c compatibility since most of irrlicht is heavyly using c++ features. I doubt that writing a c interface is reasonable. (well there are frameworks that do it anyway - ODE etc.)

You would have to translate/wrap at least every header file that is in the 'include' directory.

cheers

gorgon
Post Reply