Signals and Slots GUI wrapper
Posted: Sat Dec 12, 2015 1:13 am
This is something I made tonight as a fun project after I noticed it gets a bit annoying to have a switch case for all gui elements especially when the user interface might be a little populated. I wish the developers would think about including the option to associate an arbitrary user pointer with gui element instances so I don't have to take this weird approach.
The source can be found here. The Irrlicht tutorial on user interface was converted as an example.
It requires a decent compiler with C++11 features. I've tested this on MinGW GCC 5.2.0 x32 and I know it works on lower versions as well. As for visual studio I have no idea. But I know VS to be a bit sketchy on new C++ features. Either requires some workarounds (if you're lucky) or not having that feature at all. So be warned VS users.
I haven't spent much time testing it so please expect some bugs. If you find any then please let me know and I'll fix it as soon as possible.
The source can be found here. The Irrlicht tutorial on user interface was converted as an example.
It requires a decent compiler with C++11 features. I've tested this on MinGW GCC 5.2.0 x32 and I know it works on lower versions as well. As for visual studio I have no idea. But I know VS to be a bit sketchy on new C++ features. Either requires some workarounds (if you're lucky) or not having that feature at all. So be warned VS users.
I haven't spent much time testing it so please expect some bugs. If you find any then please let me know and I'll fix it as soon as possible.