Introduced SwitchLayer which will form the basis of provided support for varients

This commit is contained in:
Robert Osfield
2008-08-27 10:13:30 +00:00
parent 9499cfa420
commit 95a359bdab
11 changed files with 372 additions and 2 deletions

View File

@@ -566,3 +566,25 @@ osg::BoundingSphere ProxyLayer::computeBound(bool treatAsElevationLayer) const
else return osg::BoundingSphere();
}
/////////////////////////////////////////////////////////////////////////////
//
// SwitchLayer
//
SwitchLayer::SwitchLayer():
_activeLayer(0)
{
}
SwitchLayer::SwitchLayer(const SwitchLayer& switchLayer,const osg::CopyOp& copyop):
Layer(switchLayer,copyop),
_activeLayer(0)
{
}
void SwitchLayer::clear()
{
_layers.clear();
}