inheritance and gui

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
rogerdv
Posts: 93
Joined: Wed Aug 27, 2003 4:20 pm

inheritance and gui

Post by rogerdv »

If I inherit a class from IGUIWindow, how can i add that window to the guienvironment? It is enough to make myclass=guienvironmnt->addwindow?
ru guo ni yao ai, ni jiang bu hui shi qu
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Simply call

Code: Select all

new YourElement(aParent);
This works. If you want your element be placed directly in the environment, use Environment->getRootGUIElement() as parent.
Post Reply