From Wang Rui, new native binary/ascii format infrastructure and wrappers.
From Robert Osfield, refactor of Wang Rui's original osg2 into 3 parts - parts placed into osgDB, the ReaderWriter placed into src/osg/Plugin/osg and wrappers into src/osgWrappers/serializers/osg
This commit is contained in:
23
src/osgWrappers/serializers/osg/AnimationPathCallback.cpp
Executable file
23
src/osgWrappers/serializers/osg/AnimationPathCallback.cpp
Executable file
@@ -0,0 +1,23 @@
|
||||
#undef OBJECT_CAST
|
||||
#define OBJECT_CAST dynamic_cast
|
||||
|
||||
#include <osg/AnimationPath>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( AnimationPathCallback,
|
||||
new osg::AnimationPathCallback,
|
||||
osg::AnimationPathCallback,
|
||||
"osg::Object osg::NodeCallback osg::AnimationPathCallback" )
|
||||
{
|
||||
ADD_OBJECT_SERIALIZER( AnimationPath, osg::AnimationPath, NULL ); // _animationPath
|
||||
ADD_VEC3D_SERIALIZER( PivotPoint, osg::Vec3d() ); // _pivotPoint
|
||||
ADD_BOOL_SERIALIZER( UseInverseMatrix, false ); // _useInverseMatrix
|
||||
ADD_DOUBLE_SERIALIZER( TimeOffset, 0.0 ); // _timeOffset
|
||||
ADD_DOUBLE_SERIALIZER( TimeMultiplier, 1.0 ); // _timeMultiplier
|
||||
ADD_BOOL_SERIALIZER( Pause, false ); // _pause
|
||||
}
|
||||
|
||||
#undef OBJECT_CAST
|
||||
#define OBJECT_CAST static_cast
|
||||
Reference in New Issue
Block a user