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.
Can Irrlicht Engine be used with C?
-
Gorgon Zola
- Posts: 118
- Joined: Thu Sep 18, 2003 10:05 pm
- Location: switzerland
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
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