Further work on add serialization support for osgViewer configurations
This commit is contained in:
@@ -29,6 +29,14 @@ View::View()
|
||||
stateset->setGlobalDefaults();
|
||||
}
|
||||
|
||||
View::View(const osg::View& view, const osg::CopyOp& copyop):
|
||||
Object(view,copyop),
|
||||
_camera(view._camera),
|
||||
_slaves(view._slaves)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
View::~View()
|
||||
{
|
||||
osg::notify(osg::INFO)<<"Destructing osg::View"<<std::endl;
|
||||
|
||||
@@ -157,6 +157,8 @@ Registry::Registry()
|
||||
|
||||
addFileExtensionAlias("shadow", "osgShadow");
|
||||
|
||||
addFileExtensionAlias("view", "osgViewer");
|
||||
|
||||
addFileExtensionAlias("sgi", "rgb");
|
||||
addFileExtensionAlias("rgba", "rgb");
|
||||
addFileExtensionAlias("int", "rgb");
|
||||
|
||||
@@ -30,6 +30,13 @@ View::View()
|
||||
setEventQueue(new osgGA::EventQueue);
|
||||
}
|
||||
|
||||
|
||||
View::View(const osgViewer::View& view, const osg::CopyOp& copyop):
|
||||
osg::View(view,copyop),
|
||||
osgGA::GUIActionAdapter()
|
||||
{
|
||||
}
|
||||
|
||||
View::~View()
|
||||
{
|
||||
// osg::notify(osg::NOTICE)<<"Destructing osgViewer::View"<<std::endl;
|
||||
|
||||
Reference in New Issue
Block a user