Introduced osgViewer serializers plugin for serialization support for osgViewer::Config implementations and Keystone
19 lines
691 B
C++
19 lines
691 B
C++
#include <osgViewer/Keystone>
|
|
|
|
#include <osgDB/ObjectWrapper>
|
|
#include <osgDB/InputStream>
|
|
#include <osgDB/OutputStream>
|
|
|
|
REGISTER_OBJECT_WRAPPER( osgViewer_Keystone,
|
|
new osgViewer::Keystone,
|
|
osgViewer::Keystone,
|
|
"osg::Object osgViewer::Keystone" )
|
|
{
|
|
ADD_BOOL_SERIALIZER( KeystoneEditingEnabled, true );
|
|
ADD_VEC4_SERIALIZER( GridColor, osg::Vec4(1.0,1.0,1.0,1.0) );
|
|
ADD_VEC2D_SERIALIZER( BottomLeft, osg::Vec2d(0.0,0.0) );
|
|
ADD_VEC2D_SERIALIZER( BottomRight, osg::Vec2d(0.0,0.0) );
|
|
ADD_VEC2D_SERIALIZER( TopLeft, osg::Vec2d(0.0,0.0) );
|
|
ADD_VEC2D_SERIALIZER( TopRight, osg::Vec2d(0.0,0.0) );
|
|
}
|