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!
how to make gui more effective in Irrlicht?
-
michael520
- Posts: 230
- Joined: Mon Oct 10, 2005 2:24 am
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.