Hi,
I have problems to compile the gluTessCallback
command under GLU Version 1.3
if I use the callbackfunction with parameters
unequal void. The error message is
ANSI C++ prohibits conversion from
(const GLfloat *) to (…).
Could anyboddy help?
Are you sure that your example demonstrtates the problem? No conversions takes place in the callback function. I tried the 11-1 example from the earlier version of the book about OpenGL 1.1. If I try to compile it as C++ code do I have some problem with the last line in this function:
As mentioned before does a type cast work
glVertex3dv((const GLdouble *) vertex);
the extra varible could also be used
glVertex3dv(pointer );
but the best solution is probably to change the function
Right, I think that I missunderstood your question. If you look at the red book example will you find type casts in the gluTessCallback calls like this: