Help understanding Irrlicht[SOLVED]

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
XenoZergNid
Posts: 17
Joined: Sun Oct 13, 2013 1:52 am

Help understanding Irrlicht[SOLVED]

Post by XenoZergNid »

I'm quite confused because

http://irrlicht.sourceforge.net/docu/cl ... indow.html

shows that IGUIWindow is pure virtual, so how does:

Code: Select all

addWindow (const core::rect< s32 > &rectangle, bool modal=false, const wchar_t *text=0, IGUIElement *parent=0, s32 id=-1)=0
from IGUIEnvironment work(and how does this one work? its also pure virtual)

the reason I need to know is because I'm trying to inherit from IGUIWindow and found everything to be pure virtual.
Last edited by XenoZergNid on Wed Oct 16, 2013 12:18 am, edited 1 time in total.
CuteAlien
Admin
Posts: 9971
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Help understanding Irrlicht

Post by CuteAlien »

addWindow creates a CGUIWindow which is derived from IGUIWindow. Also the guienvironment is a CGUIEnvironment which is derived from IGUIEnvironment. The I class are Interfaces so users only have to know about them. Internally they all use classes which are derived from the Interfaces and implement all the virtual functions (or at least all pure virtual functions). If you look in the source folder of Irrlicht you can see all the implementation classes.
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
XenoZergNid
Posts: 17
Joined: Sun Oct 13, 2013 1:52 am

Re: Help understanding Irrlicht

Post by XenoZergNid »

ok, that makes more sense, thanks alot!
Post Reply