Added CMake support for specifying what OpenGL target and features that the OpenSceneGraph build should use.

Added use of the new Cmake generated #define's for optionally compiling parts of the OpenSceneGraph's OpenGL support for the various OpenGL targets
This commit is contained in:
Robert Osfield
2009-10-23 13:19:57 +00:00
parent 023fb109a3
commit 327b67a305
26 changed files with 174 additions and 32 deletions

View File

@@ -40,6 +40,10 @@ void LineStipple::setPattern(GLushort pattern)
void LineStipple::apply(State&) const
{
#ifdef OSG_GL1_AVAILABLE
glLineStipple(_factor, _pattern);
#else
osg::notify(osg::NOTICE)<<"Warning: LineStipple::apply(State&) - not supported."<<std::endl;
#endif
}