Hello Johannes,
On 10/05/2010 09:38 AM, Johannes Brunen wrote:
> I have just compiled the example from the last revision. But I got the
> following compiler error:
>
> hiresimage.cpp(557) : error C2065: 'GL_DEPTH24_STENCIL8' : undeclared
> identifier
oops, that should be GL_DEPTH24_STENCIL8_EXT, fixed in r2493.
> I did download the latest glext.h file but it is nowhere included in the
> OpenSG code. On the other hand the file OSGGLEXT.h states
>
> 'All these are taken verbatim from the nVidia Linux glext.h',
that's probably more meant as a reminder where to get additional defines
from and to ensure they have the correct numerical values.
> but it does not contain the above symbol. What is the correct way to handle
> this situation.
> Should we include the gl/glext.h header in the example or
> should the OSGGLEXT.h header be expanded?
It was expanded to contain the extension symbols for packed depth
stencil, the example just uses a GL 3.x or later symbol, which it should
not ;)
> Why does the OSGGLEXT.h not include the native gl files?
Usually glext.h is included from gl.h. The reason for having a separate
OSGGLEXT.h file was/is that this allows OpenSG to use the tokens even if
the extension is not supported on a system and the system has an glext.h
that matches its capabilities (instead of a glext.h that contains all
the latest extensions).
This was more of an issue in the past when many rather fundamental
things were only available as extensions (think texture compression,
non-POT textures, early shaders, etc.).
Cheers,
Carsten
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users