Hi,

I have compilation problems with osg-1.0/1.1 on HP-UX, but I am not yet sure 
if this is an osg or HP-UX problem.

One of the problems is the way OpenGL extension are handled.
For example

include/osg/BufferObject

contains (more or less) the code

#ifndef GL_ARB_vertex_buffer_object
typedef long GLsizeiptrARB;
typedef long GLintptrARB;
#endif

Now on HP-UX gl.h defines those two typedefs but it does not define 
GL_ARB_vertex_buffer_object.
Obviously this leads to a duplicate typedef that falis to compile.

Well, I know that I can expect that all of the ARB_vertex_buffer_object 
extension is available in the client library if the macro 
GL_ARB_vertex_buffer_object is defined.
But it is not clear to me if I can invert that logic and expect that nothing 
of that extension is defined if that macro is not defined.

Is this a problem with osg, that there is _NO_ 'if and only if' connection 
between the macro and the typedefs or should I bug HP because of nonstandard 
gl headers?

Opinions, or better OpenGL Standard paragaphs to cite? :)
Or is there any other way to to solve that problem in a generic way?

    Greetings

         Mathias

-- 
Dr. Mathias Fröhlich, science + computing ag, Software Solutions
Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to