Hello! I’m doing the example Florida from chapter 10. I’m trying to call the function gluTessCallback. This is how I and the author do it:
gluTessCallback(pTess, GLU_TESS_BEGIN, (CALLBACK)glBegin);
And CALLBACK is:
#ifndef WIN32
#define CALLBACK (GLvoid (*)(...))
#else
#define CALLBACK (GLvoid (__stdcall*)())
#endif
Since I’m running Win 7 64-bit I guess it chooses the latter one. Anyway, I’ve tried with both of the CALLBACKs, neither work.
If I use the first CALLBACK I get: syntax error: ‘)’. If I use the second one I get the previous error and that I miss a ‘)’, a bit weird.
Any help with this would be appreciated!