[osg-users] Call for feedback : glu.h does it contain _GLUfuncptr?

Leif Delgass ldelgass at gmail.com
Mon Oct 1 09:37:48 PDT 2007


On 10/1/07, Leif Delgass <ldelgass at gmail.com> wrote:
> On 10/1/07, Robert Osfield <robert.osfield at gmail.com> wrote:
> > Hi All,
> >
> > In tracking down a problem with build that exists on the CMake buiild
> > under OSX and I believe under certain Mingw (or perhaps Cyginw) setups
> > as well - it comes down to some glu.h defining the glu tesselator
> > callback in different ways.  This issue in past has resulted in hacks
> > to include/osg/GLU to try and choose the right form, alas this hasn't
> > proved full proof.  So onward we must go to find out what combination
> > might work...
> >
> > I'd like you feedback, how is the glu tesselator callback defined on
> > your system, on my linux box I have /usr/include/GL/glu.h
> >
> >
> >
> > /* Internal convenience typedefs */
> > typedef void (GLAPIENTRYP _GLUfuncptr)();
> >
> > ....
> > ....
> >
> > GLAPI void GLAPIENTRY gluNurbsCallback (GLUnurbs* nurb, GLenum which,
> > _GLUfuncptr CallBackFunc);
> >
> >
> > So what is the equivalent definition on your machine?  Please feel
> > free to copy and past the relevant sections.  The more platforms I can
> > get feedback on the better.
> >
> > Robert.
>
> Hi Robert,
>
> I have the same as you in Fedora Core 5.  This header comes from the
> Mesa 6.4.2 libGLU devel rpm on my system, and is located in
> /usr/include/GL.
>
> Leif Delgass

I just checked a Red Hat Enterprise 4 box and it has:
/* Internal convenience typedefs */
#ifdef __cplusplus
typedef GLvoid (*_GLUfuncptr)();
#else
typedef GLvoid (*_GLUfuncptr)(GLvoid);
#endif

In RHEL4, this header is part of the xorg-x11-devel package for X.org 6.8.2.

Leif Delgass



More information about the osg-users mailing list