PDA

View Full Version : gluTessCallback



BlowIT
01-01-2006, 03:35 AM
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

01-01-2006, 08:12 AM
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);
...