Introduced SwitchLayer which will form the basis of provided support for varients
This commit is contained in:
@@ -105,6 +105,7 @@
|
||||
#include "ImageLayer.h"
|
||||
#include "HeightFieldLayer.h"
|
||||
#include "CompositeLayer.h"
|
||||
#include "SwitchLayer.h"
|
||||
|
||||
#include "FadeText.h"
|
||||
#include "Text3D.h"
|
||||
@@ -1585,6 +1586,11 @@ osgTerrain::Layer* DataInputStream::readLayer()
|
||||
layer = new osgTerrain::ImageLayer;
|
||||
((ive::ImageLayer*)(layer))->read(this);
|
||||
}
|
||||
else if (layerid==IVESWITCHLAYER)
|
||||
{
|
||||
layer = new osgTerrain::SwitchLayer;
|
||||
((ive::SwitchLayer*)(layer))->read(this);
|
||||
}
|
||||
else if (layerid==IVECOMPOSITELAYER)
|
||||
{
|
||||
layer = new osgTerrain::CompositeLayer;
|
||||
|
||||
Reference in New Issue
Block a user