Why irrlicht dont have funcs exported to 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
bogQ
Posts: 11
Joined: Sat Jan 09, 2010 1:06 pm

Why irrlicht dont have funcs exported to dll?

Post by bogQ »

I mean, you gota make wraper for some less used language instead using dll call from predefined funcs.
Is there a plan to add something like this in a future or its not on todo list and will not b on the list?
slavik262
Posts: 753
Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA

Post by slavik262 »

The Irrlicht dll exports CreateDevice and CreateDeviceEx which return an IrrlichtDevice pointer. Through this you can access all the functionality of Irrlicht.
bogQ
Posts: 11
Joined: Sat Jan 09, 2010 1:06 pm

Post by bogQ »

Is there some pointers of how to achieve this or some documentation?
Lets say that i need to call GetTexture command, how whyd i achieve this when calling CreateDevice or CreateDeviceEx?
slavik262
Posts: 753
Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA

Post by slavik262 »

Look at the examples to see how to access different parts of the engine through the IrrlichtDevice.
bogQ
Posts: 11
Joined: Sat Jan 09, 2010 1:06 pm

Post by bogQ »

Im looking but im not seeing
Lets say that i need to return pointer of CreateDevice func
so
"ptr","CreateDevice"...
will work probably
next i look at
IRRLICHT_API IrrlichtDevice* IRRCALLCONV irr::createDeviceEx ( const SIrrlichtCreationParameters & parameters )

And i dont see how whyd i call dll on GetTexture or some other command and where to put its parametars when using CreateDevice or createDeviceEx?
devsh
Competition winner
Posts: 2057
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK
Contact:

Post by devsh »

Omg.... Man seriously read Api. Irrlicht device class creates the different subsystems like video driver, smger etc which you can access as device members and so on. There is only one function in the entire library thats not a method... Createdevice
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

@bogQ: The Irrlicht interface is working with classes. createDevice returns a IrrlichtDevice object and from that device you can for example call getVideoDriver to get a class implementing the IVideoDriver interface from which then again can be used to call getTexture to get a ITexture object.

Please take a look at the examples which come with the Irrlicht engine. But as Irrlicht is a c++ engine you need to know at least how to code c++ to use it.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
_maxim_
Posts: 54
Joined: Thu May 27, 2010 11:05 am
Location: Russia
Contact:

Post by _maxim_ »

look http://pypi.python.org/pypi/pyirrlicht
this have irrlicht_c.dll with many exports functions and may be use with asm and c language (i use this for Python)
Post Reply