gluTessCallback

Hi,
I get this error when i try to complile. Could sombody please help me out.
‘gluTessCallback’ : cannot convert parameter 3 from ‘void (const float *)’ to ‘void (__stdcall *)(void)’
None of the functions with this name in scope match the target type

Thanks

You need to use an explicit cast on the function pointer.

For example, in C/C++ you could do this:

typedef void(CALLBACK* TessCallbackType)(void);
gluTessCallback(tess, GLU_TESS_BEGIN, (TessCallbackType)MyBeginCallback);