META_OSGMANIPULATOR_Object macro to ensure these classes could work with their wrappers, and a few naming styles should be changed as well. Fortunately everything seems to compile fine under Windows and my new Ubuntu system. And I finally find the problem of the serializers/osgTerrain/Terrain.cpp, it just missed an "osg::Group" before "osg::CoordinateSystemNode" indicator. With the small fix attached now VPB could generate terrain with osgt/osgb formats."
15 lines
629 B
C++
15 lines
629 B
C++
#include <osgManipulator/RotateSphereDragger>
|
|
#include <osgDB/ObjectWrapper>
|
|
#include <osgDB/InputStream>
|
|
#include <osgDB/OutputStream>
|
|
|
|
REGISTER_OBJECT_WRAPPER( osgManipulator_RotateSphereDragger,
|
|
new osgManipulator::RotateSphereDragger,
|
|
osgManipulator::RotateSphereDragger,
|
|
"osg::Object osg::Node osg::Transform osg::MatrixTransform osgManipulator::Dragger "
|
|
"osgManipulator::RotateSphereDragger" )
|
|
{
|
|
ADD_VEC4_SERIALIZER( Color, osg::Vec4() ); // _color
|
|
ADD_VEC4_SERIALIZER( PickColor, osg::Vec4() ); // _pickColor
|
|
}
|