I am having trouble registering a callback function for gluQuadricCallback. The definition states that it takes a paramterless function, but the documentation says that an error code will be passed to my function. The OpenGL example code “quadric.c” does not compile with the following error:
invalid conversion from
void(*)(unsigned int) 'toGLvoid(*)()’
The method signature is as follows:
void errorCallback(GLenum error);
How do I get gluQuadricCallback to take a function pointer for this method.