Added serializer support for RigTransforms
This commit is contained in:
parent
1fe2d6d31f
commit
36930dcd18
@ -80,6 +80,7 @@ namespace osgAnimation
|
||||
// set implementation of rig method
|
||||
void setRigTransformImplementation(RigTransform*);
|
||||
RigTransform* getRigTransformImplementation();
|
||||
const RigTransform* getRigTransformImplementation() const { return _rigTransformImplementation.get(); }
|
||||
|
||||
virtual void drawImplementation(osg::RenderInfo& renderInfo) const;
|
||||
void update();
|
||||
|
@ -72,4 +72,5 @@ REGISTER_OBJECT_WRAPPER( osgAnimation_RigGeometry,
|
||||
{
|
||||
ADD_USER_SERIALIZER( InfluenceMap ); // _vertexInfluenceMap
|
||||
ADD_OBJECT_SERIALIZER( SourceGeometry, osg::Geometry, NULL ); // _geometry
|
||||
ADD_OBJECT_SERIALIZER( RigTransformImplementation, osgAnimation::RigTransform, NULL ); // _geometry
|
||||
}
|
||||
|
25
src/osgWrappers/serializers/osgAnimation/RigTransform.cpp
Normal file
25
src/osgWrappers/serializers/osgAnimation/RigTransform.cpp
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
#include <osgAnimation/RigTransformHardware>
|
||||
#include <osgAnimation/RigTransformSoftware>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
namespace wrap_osgAnimationRigTransform{
|
||||
REGISTER_OBJECT_WRAPPER( osgAnimation_RigTransform,
|
||||
NULL,
|
||||
osgAnimation::RigTransform,
|
||||
"osg::Object osgAnimation::RigTransform" ){}
|
||||
}
|
||||
namespace wrap_osgAnimationRigTransformSoftWare{
|
||||
REGISTER_OBJECT_WRAPPER( osgAnimation_RigTransformSoftware,
|
||||
new osgAnimation::RigTransformSoftware,
|
||||
osgAnimation::RigTransformSoftware,
|
||||
"osg::Object osgAnimation::RigTransform osgAnimation::RigTransformSoftware" ){}
|
||||
}
|
||||
namespace wrap_osgAnimationRigTransformHardWare{
|
||||
REGISTER_OBJECT_WRAPPER( osgAnimation_RigTransformHardware,
|
||||
new osgAnimation::RigTransformHardware,
|
||||
osgAnimation::RigTransformHardware,
|
||||
"osg::Object osgAnimation::RigTransform osgAnimation::RigTransformHardware" ){}
|
||||
}
|
Loading…
Reference in New Issue
Block a user