The error is
'GLHandler::handleKeys': non-standard syntax; use '&' to create a pointer to member
four times, on different functions.
I am trying to make a wrapper class for initialising glut, to make things cleaner.
The error appears on 4 lines all for the same reason, though I'm not sure why.
All of these are setting callbacks
Inside initGlut function:
glutKeyboardFunc(this->handleKeys); glutDisplayFunc(this->render); glutTimerFunc(1000 / SCREEN_FPS, this->runMainLoop, 0);
glutTimerFunc(1000 / this->SCREEN_FPS, this->runMainLoop, val);
The errors being thrown here do not exist when called identically from inside main which leads me to believe something is wrong with the class, but I can't see it.