Hi Andy, Yikes! Yes, pls test w/ those Sun vertex macros disabled, and send to osg-submissions as appropriate.
It's one thing for a developer to decide to use macro wrappers in their end application, but portable middleware libraries like OSG must avoid such trickery. cheers -- mew On Fri, Mar 21, 2008 at 7:12 AM, Andy Skinner <[EMAIL PROTECTED]> wrote: > Thanks, Mike, for putting it in this perspective. Now that you mention > it, we agree that this would break things that we use. > > This raises an issue found recently as we were building OSG on Solaris. > On our Solaris machines, /usr/include/GL/gl.h has, near the bottom, a > bit of code like: > #ifndef SUN_OGL_NO_VERTEX_MACROS > #ifndef LINUX > #include <GL/glmacros.h> > #endif /* LINUX */ > #endif /* SUN_OGL_NO_VERTEX_MACROS */ > > glmacros.h contains defines for things like glVertex2f, calling a > function from a function table and passing a current context in. > > This broke a bit of code in OSG that was defining a class with methods > with the names of OpenGL functions. Those functions declarations had > the Sun define applied, so wouldn't compile. Robert had to change the > names of the methods. > > Maybe we should be compiling OSG with SUN_OGL_NO_VERTEX_MACROS. If I > get time, I may try it both ways and see if I can compare. > > Thoughts from people who know more about this? > > thanks, > andy -- Mike Weiblen -- Austin Texas USA -- http://mew.cx/ _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

