I can run this code snip with GLUT and Win32 but when going to MFC the compiler comes up with with the following errors.
I have no problems running anything other OpenGL code in MFC.
GLUtesselator *tobj;
tobj = gluNewTess();
gluTessCallback(tobj, GLU_TESS_VERTEX, glVertex3dv);
gluTessCallback(tobj, GLU_TESS_BEGIN, glBegin);
gluTessCallback(tobj, GLU_TESS_END, glEnd);
MFC compiler errors ??? what to do to fix this ???
‘gluTessCallback’ : cannot convert parameter 3 from ‘void (const double *)’ to ‘void (__stdcall *)(void)’
None of the functions with this name in scope match the target type
‘gluTessCallback’ : cannot convert parameter 3 from ‘void (unsigned int)’ to ‘void (__stdcall *)(void)’
None of the functions with this name in scope match the target type