PDA

View Full Version : gluTessCallback giving me error



ntsang
02-28-2004, 03:40 AM
Hey guys, I've been looking at the tessellation features of OpenGL. I decided to test out one of the code samples from the red book (http://www.opengl.org/resources/code/basics/redbook/tess.c), but I end up getting errors all over the place, mostly to do with gluTessCallback:

One of the lines:
gluTessCallback(tobj, GLU_TESS_VERTEX, glVertex3dv);

the error:
error C2664: 'glVertex3dv' : cannot convert parameter 1 from 'GLvoid *' to 'const GLdouble *'

I tried with one of my own pieces of code too, but it seems to keep giving me this error. I'm on Visual Studio .NET. Does that code sample need something extra to get it running or should it be able to just run? Am I right in thinking that the existing library files for opengl and glu don't need updating? Thanks for any help you can give http://www.opengl.org/discussion_boards/ubb/smile.gif

ntsang
02-28-2004, 09:56 AM
Still having no luck here http://www.opengl.org/discussion_boards/ubb/frown.gif I'm running out of things to investigate. Is it possible I have incorrect compiler settings? And it's correct to run that program in a win32 Windows project, right?