Hi , I have an question.
My code would look like this:
void CALLBACK vertexCallback(GLfloat *vertex)
{
glVertex3fv(vertex);
printf ("glVertex3f (%5.3f, %5.3f, %5.3f)
", vertex[0], vertex[1], vertex[2]);
}
gluNurbsCallback(theNurb, GLU_NURBS_VERTEX, vertexCallback);
As compile it, the error is : error C2664: “gluNurbsCallback” : can’t translate the parameter 3 from“void (GLfloat *)”to
“_GLUfuncptr”.
In glu 1.3 Spec , the funtion “gluNrubsCallback” is defined as: void gluNrubsCallback(GLUnurbsObj *nobj,GLenum which,void (*fn)() ); , and the funtion “vertex” is defined as :void vertex(GLfloat *vertex);
Why , who can help me ?