Expose entire api from dll?

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
JRowe47
Posts: 55
Joined: Sat Jun 30, 2007 9:09 am

Expose entire api from dll?

Post by JRowe47 »

Is there an easy way to expose all of the api functions via the dll? I understand that this isn't the normal way to go about it, but I'd like to have everything explicitly available from the dll.

The purpose is to manage the engine using a scripting language that can load third party dlls.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Which parts that are currently not available would be needed by another party?
aanderse
Posts: 155
Joined: Sun Aug 10, 2008 2:02 pm
Location: Canada

Post by aanderse »

hybrid wrote:Which parts that are currently not available would be needed by another party?
byte swapping could be useful.
JRowe47
Posts: 55
Joined: Sat Jun 30, 2007 9:09 am

Post by JRowe47 »

CreateDevice and CreateDeviceEx are currently the only functions exposed, along with some other decorated functions.

I was wondering if the entire api could be exposed to a dllCall from AutoIt. I see BogQ made the post here, demonstrating what I mean.

Those 13 functions are the only ones available, and aren't enough to run the engine. Obviously it's meant for people to write c++ code that manipulates the engine, however, DllCall in the AutoIt scripting language can mirror the functionality of C++ operations. By recreating examples using DllCall on the core irrlicht dll, rather than writing an intermediate "wrapper," the engine can be more easily utilized by the scripting language. As it is now, we have to write a dll that has to explicitly manage Irrlicht functionality, meaning we have 2 degrees of separation (at least) between our programs and the engine.

By "exposing" I mean, is there a simple dllexport method to make all of the internal irrlicht api available to a dll?

I'm unsure if this would help anyone other than us AutoIt folks, but this would allow us to directly integrate irrlicht, and would be a godsend for those like me that like to play with 3D. :)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

aanderse wrote:
hybrid wrote:Which parts that are currently not available would be needed by another party?
byte swapping could be useful.
Yes, correct. Also other things from os.cpp, and the color converter. On my TODO list :D
aanderse
Posts: 155
Joined: Sun Aug 10, 2008 2:02 pm
Location: Canada

Post by aanderse »

thanks hybrid!
Post Reply