how to make gui more effective in Irrlicht?

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
michael520
Posts: 230
Joined: Mon Oct 10, 2005 2:24 am

how to make gui more effective in Irrlicht?

Post by michael520 »

I read the code of "UserInterface" in IrrExamples, and found that its programming is even more difficult than WIN32 UI.

In Win32, we can define WindowProc for each class of windows, but in Irrlicht, how should we do?

I appreciate links and experiences, thanks!
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

no questions here. Moving to beginner's section.
CuteAlien
Admin
Posts: 9930
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

In Irrlicht you have an EventReceiver and give each UI-Element an ID. Then you can check for EventType and, for GUI-Events, also on that ID in a long series of case switch statements. Which works fine for a small UI-System, but i would recommend using advanced mechanisms for complex GUI's. Either implement some structures yourself (i used myself for example some functor-objects for event-callbacks) or you can use CE-Gui which should work together with Irrlicht.
Post Reply