Issue with gluNurbsCallback glu32.dll source

I’m trying to create a callback to return the tessellated vertexes from GLU,


image

however when I go to use this function I get an error …from reading the forum I determined i need to test my local version ( as you expect),… I used this code ( recommend below )

The result displays this:
image

IT seems I need to build my own version of GLU because I’m on 1.22 so where do I get the source, files for GLU and the headers I need to do that so as GLU_NURBS_VERTEX, (_GLUfuncptr) are defined and valid? Also not sure which version of GLU those became valid?

I’d suggest using Mesa’s version, as it’s actively maintained:

I can’t find the original SGI GLU source code on the web. There don’t appear to be any archives of oss.sgi.com (it looks like XFS is the only thing that was preserved from there).

Ok cool, I will build it and test it, if it works on x64 Thank you that was very helpful!

And let peple know the result!

OK I got the library and I’m struggling to make it a dll and compile it… I’m using MFC since all my stuff is MFC which for my projects work fantastic… however I essentioally run into the issue of precompiled header issues for the “c” type files… not sure how you work around C++ pre compiled, but the *.c stuff doesn’t want the C++ style header. Do I need to use: for all C type header files?

#ifdef __cplusplus
extern “C” {
#endif

#ifdef __cplusplus
}
#endif

Again the initial reason for doing is initially installed glu seems to not support it. I’m trying to do a call back to get the tessalation of a Surface gluNurbsCallback(theNurb, GLU_NURBS_VERTEX, (_GLUfuncptr)&vertexCallback); unless there is a vintage way to set that?

That sounds like an issue with the build options. GLU uses a mixture of C and C++. The NURBS code is C++, the rest (tessellation, quadrics, miscellaneous functions) is C. The public API is C.

The compilation instructions on the Mesa web site indicate that Meson is required to generate the build files.