Page 1 of 1

Signals and Slots GUI wrapper

Posted: Sat Dec 12, 2015 1:13 am
by SLC
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.

Re: Signals and Slots GUI wrapper

Posted: Fri Dec 25, 2015 12:45 am
by sudi
Nice!

Shameless plug on my part...without c++11 and with a lot less code: http://irrlicht.sourceforge.net/forum/v ... =9&t=43344