I'm not finished yet, but your change plus my include in
GraphicsWindowX11 seem to work.  (See my other email for that.)

andy

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Thursday, March 13, 2008 2:55 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Testing of SVN version please

Hi Andy,

Thanks for the looking into this.  Darn frustrating how some vendors
try to be "clever" but in the end just make there code more fragile...

I've gone ahead and remove all the gl and glu prefixes from the
SceneGraphBuilder methods.  I've also updated the wrappers to honour
this.

Could you do an svn update and let me know how you get on.  It's too
late in the day now for me to do a dev release so I'll leave it for
now and let testing be done overnight (UK time) and if things look
solid overnight I'll go do a dev release tomorrow morning.

Cheers,
Robert.

On Thu, Mar 13, 2008 at 6:42 PM, Andy Skinner
<[EMAIL PROTECTED]> wrote:
> It seems that there is a SUN_OGL_NO_VERTEX_MACROS define that I should
>  set.  If I google that, I get a lot of source references, and a few
>  people who had to use it.  I'm trying it now.  One of them said that
>  Sun's GLU wouldn't work if you compile your code with this define.
>
>  Here is one comment:
>  SunOS: OpenGL apps must be compiled with SUN_OGL_NO_VERTEX_MACROS
>  defined so that macros aren't used for OpenGL API functions. This
also
>  means that Sun's stock GLUT and GLU libraries won't work with
Chromium.
>  After you've produced new GLUT and GLU libraries you may have to edit
>  SunOS.mk and modify your LD_LIBRARY_PATH to select the new libraries.
>
>  Another:
>   - I had to specify "-DSUN_OGL_NO_VERTEX_MACROS" on the
>        compile line for source files that called OpenGL routines using
>         the scope operator (e.g.  "::glColor4fv( p );").  Loosely
>  speaking,
>        SUN implements OpenGl calls indirectly through some sort of
table
>        of function pointers (via #define) "for performance reasons".
>  The
>        scope operator "::" says  there is a global function to call
>  which
>        is not found and results in a compiler error. The
>       "SUN_OGL_NO_VERTEX_MACROS" macro specifies
>        that the actual OpenGl routines are to be accessed and fixes
the
>        problem. The alternative is to remove the scope operator from
the
>       OpenGl calls.
>
>  So they had a problem when the :: was there, and we're having a
problem
>  because this isn't a call, but a declaration.
>
>  I think your approach will resolve it without me having to wonder
about
>  side effects to using that define above.
>
>  thanks
>
> andy
>
>  -----Original Message-----
>  From: [EMAIL PROTECTED]
>  [mailto:[EMAIL PROTECTED] On Behalf Of
Robert
>  Osfield
>
> Sent: Thursday, March 13, 2008 2:34 PM
>  To: OpenSceneGraph Users
>  Subject: Re: [osg-users] Testing of SVN version please
>
>
>
> On Thu, Mar 13, 2008 at 6:15 PM, Andy Skinner
>  <[EMAIL PROTECTED]> wrote:
>  > I built SceneGraphBuilder.i to get a look at the preprocessed code.
>  >  This looks like:
>  >
>  >  void ( * sunOglCurPrimTablePtr -> oglColor4f ) (
sunOglCurrentContext
>  ,
>  >
>  > GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
>  >
>  >  There is definitely something whacky there.
>  >
>  >  I'll give renaming a try, and try to find out where this is coming
>  from.
>
>  I'll go ahead an rename the methods, just removing the gl prefix.
>  I'll check in this change once I've got things built.
>
>  Robert.
>
>
> _______________________________________________
>  osg-users mailing list
>  osg-users@lists.openscenegraph.org
>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
>  g
>  _______________________________________________
>  osg-users mailing list
>  osg-users@lists.openscenegraph.org
>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to