I have an class with instance functions (or methods?). From within an instance, I try to pass pointers to those functions to a library. The library expects static functions
What you are trying to do is not possible. This is glut
's fault actually.
The thing is this:
glut
wants to call a function, without giving it data,which are conflicting needs. I believe glut
decided you can safely use global variables.
So, one solution is to use static functions, with static data. Or a better solution would be to switch to SDL.