Hello to all. I have a project that uses calls to OpenGL, in particular, I'm:
static GLUtesselator *tobj = NULL;
tobj = gluNewTess();
gluTessCallback(tobj, GLU_TESS_VERTEX, (GLvoid (*) ()) &glVertex3dv);
...
static GLUtesselator *tobj = NULL;
tobj = gluNewTess();
gluTessCallback(tobj, GLU_TESS_VERTEX, (GLvoid (*) ()) &glVertex3dv);
...
To copy to clipboard, switch view to plain text mode
compiling I get this error message:
C:\Qt\progetti\AreaRobot\blockgroup.cpp:187: error: invalid conversion from 'GLvoid (*)() {aka void (*)()}' to '_GLUfuncptr {aka void (*)()}' [-fpermissive]
C:\Qt\progetti\AreaRobot\blockgroup.cpp:187: error: invalid conversion from 'GLvoid (*)() {aka void (*)()}' to '_GLUfuncptr {aka void (*)()}' [-fpermissive]
To copy to clipboard, switch view to plain text mode
I do not know how I can correct the error, can you help me ?
Bookmarks