Originally posted by Spiral Man:
no, openGL and glut will not support classes, because they are not object oriented (so more people can use them).
besides, what you are trying to do doesnt make any sense. why would you pass a class to a function that wants a function pointer? thats never going to work, because there is no way to know which function in the class to call (unless of course, its a class derived from a glut class, but like i said, gl and glut arent OO). what you need to do is something like this
im not sure if thats exactly it, you may need to cast it, or make it a pointer, or some such (ive never done this, but i remember my friend had problems trying to do it). but that is the basic idea.