Hello,
i try to put the callback funktion in a class, this function uses the class. The class ist binding the function to glut to.
Have anybody an example of this situation?
Regards,
igel74
example:
...
//Bind "handle_resize" to glut
void inithandler()
{
glutReshapeFunc(handle_resize); //won´t work
}
...
//resize
GLvoid handle_resize(GLint width, GLint height)
{
if (height == 0) height=1;
if (width == 0) width=1;
transform(); //another class member
}



