in Opengl , I have a function:
glutDisplayFunc();
Instead of passing a standalone function into it, would it be possible for me to pass in a class function?
for example
class graphic
{
public
void run();
};
void main ()
{
class graphic temp;
glutDisplayFunc( temp.run);
}