Introduced SwitchLayer which will form the basis of provided support for varients
This commit is contained in:
@@ -106,6 +106,7 @@
|
||||
#include "ImageLayer.h"
|
||||
#include "HeightFieldLayer.h"
|
||||
#include "CompositeLayer.h"
|
||||
#include "SwitchLayer.h"
|
||||
|
||||
#include <osg/Notify>
|
||||
#include <osg/io_utils>
|
||||
@@ -1289,6 +1290,10 @@ void DataOutputStream::writeLayer(const osgTerrain::Layer* layer)
|
||||
{
|
||||
((ive::ImageLayer*)(layer))->write(this);
|
||||
}
|
||||
else if (dynamic_cast<const osgTerrain::SwitchLayer*>(layer))
|
||||
{
|
||||
((ive::SwitchLayer*)(layer))->write(this);
|
||||
}
|
||||
else if (dynamic_cast<const osgTerrain::CompositeLayer*>(layer))
|
||||
{
|
||||
((ive::CompositeLayer*)(layer))->write(this);
|
||||
|
||||
Reference in New Issue
Block a user