root/OpenSceneGraph/trunk/src/osgWrappers/serializers/osgParticle/FluidFrictionOperator.cpp @ 11020

Revision 11020, 0.7 kB (checked in by robert, 5 years ago)

From Wang Rui, added osgParticle serializers

Line 
1#include <osgParticle/FluidFrictionOperator>
2#include <osgDB/ObjectWrapper>
3#include <osgDB/InputStream>
4#include <osgDB/OutputStream>
5
6REGISTER_OBJECT_WRAPPER( osgParticleFluidFrictionOperator,
7                         new osgParticle::FluidFrictionOperator,
8                         osgParticle::FluidFrictionOperator,
9                         "osg::Object osgParticle::Operator osgParticle::FluidFrictionOperator" )
10{
11    ADD_FLOAT_SERIALIZER( FluidDensity, 0.0f );  // _density
12    ADD_FLOAT_SERIALIZER( FluidDensity, 0.0f );  // _viscosity
13    ADD_VEC3_SERIALIZER( Wind, osg::Vec3() );  // _wind
14    ADD_FLOAT_SERIALIZER( OverrideRadius, 0.0f );  // _ovr_rad
15}
Note: See TracBrowser for help on using the browser.