GLUI in seperate class?
I'm using GLUT windows and a GLUI subwindow for my control elements. No problem so far.
In GLUI I'm able to give some control elements a callback function. This callback function have to be a static function or must be defined in global shape. I have tried to get everything I need to do with GLUI in a seperate GUI class.
The problem: I want my callback function also inside of the GUI class. For this to work, I have to declare it static. But from a static function I can't access variables from an object of this class.
Is there any way to add a normal member function as a callback to one of my GUI objects?
I'm sorry if it's not very well explained, but I'm from Germany and I didn't find anything on Google.