Hi All,

Yesterday I began adding the Cmake options required to control the
optional compilation against the different OpenGL targets.  Once the
options were added and setting a the appropriate include/osg/Config
#define's automatically I set about doing a wide review of OSG
classes, adding the #ifndef guards around OpenGL calls that aren't
portable across all OpenGL/OpenGLES versions.  I have just checked in
the first pass at this work.

The use of the Cmake options allows us to simulate the what the OSG
functions like with various OpenGL features removed even on OpenGL
versions that support these features.  This is a good way for us to
use the the results across different OpenGL versions, and build up a
series of unit tests that should achieve the same results across a
range of OpenGL versions.  For instance today on my workstation I've
been testing the disabling of display lists, and the fixed function
pipeline all against a OpenGL 2.0 driver/headers.

The changes I've just checked in do touch upon quite a few OSG files,
so again there is risk of mistakes that disable functionality
unintentionally, before checking in I review every single line changed
and hopefully this will avoid mistakes creeping in, but no human is
perfect so it's generally best to assume the worst and be on look out
for regressions.  Like with the osg::Geometry changes, the changes are
all checked into svn/trunk so will be directly tested out be the
community, this should allow us to spot any regressions in build and
runtime as soon as possible.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to