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

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

From Wang Rui, added osgParticle serializers

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