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:
14
src/osgWrappers/serializers/osg/Box.cpp
Executable file
14
src/osgWrappers/serializers/osg/Box.cpp
Executable file
@@ -0,0 +1,14 @@
|
||||
#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
|
||||
}
|
||||
Reference in New Issue
Block a user