add new serializers

This commit is contained in:
mp3butcher
2017-03-26 15:59:36 +02:00
parent ec5cbe18d5
commit 46a37618ef
3 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#undef OBJECT_CAST
#define OBJECT_CAST dynamic_cast
#include <osg/Node>
#include <osgDB/ObjectWrapper>
#include <osgDB/InputStream>
#include <osgDB/OutputStream>
REGISTER_OBJECT_WRAPPER( CallbackObject,
new osg::CallbackObject,
osg::CallbackObject,
"osg::Object osg::Callback osg::CallbackObject" )
{
}
//MY
#undef OBJECT_CAST
#define OBJECT_CAST static_cast

View File

@@ -0,0 +1,11 @@
#include <osgVolume/MultipassTechnique>
#include <osgDB/ObjectWrapper>
#include <osgDB/InputStream>
#include <osgDB/OutputStream>
REGISTER_OBJECT_WRAPPER(osgVolume_MultipassTechnique,
new osgVolume::MultipassTechnique,
osgVolume::MultipassTechnique,
"osg::Object osgVolume::VolumeTechnique osgVolume::MultipassTechnique")
{
}

View File

@@ -0,0 +1,12 @@
#include <osgVolume/VolumeScene>
#include <osgDB/ObjectWrapper>
#include <osgDB/InputStream>
#include <osgDB/OutputStream>
REGISTER_OBJECT_WRAPPER( osgVolume_VolumeScene,
new osgVolume::VolumeScene,
osgVolume::VolumeScene,
"osg::Object osg::Node osg::Group osgVolume::VolumeScene" )
{
}