15 lines
475 B
C++
15 lines
475 B
C++
#include <osg/Shape>
|
|
#include <osgDB/ObjectWrapper>
|
|
#include <osgDB/InputStream>
|
|
#include <osgDB/OutputStream>
|
|
|
|
REGISTER_OBJECT_WRAPPER( Box,
|
|
new osg::Box,
|
|
osg::Box,
|
|
"osg::Object osg::Shape osg::Box" )
|
|
{
|
|
ADD_VEC3_SERIALIZER( Center, osg::Vec3() ); // _center
|
|
ADD_VEC3_SERIALIZER( HalfLengths, osg::Vec3() ); // _halfLengths
|
|
ADD_QUAT_SERIALIZER( Rotation, osg::Quat() ); // _rotation
|
|
}
|