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

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

From Wang Rui, added osgParticle serializers

Line 
1#include <osgParticle/PrecipitationEffect>
2#include <osgDB/ObjectWrapper>
3#include <osgDB/InputStream>
4#include <osgDB/OutputStream>
5
6REGISTER_OBJECT_WRAPPER( osgParticlePrecipitationEffect,
7                         new osgParticle::PrecipitationEffect,
8                         osgParticle::PrecipitationEffect,
9                         "osg::Object osg::Node osgParticle::PrecipitationEffect" )
10{
11    ADD_VEC3_SERIALIZER( Wind, osg::Vec3() );  // _wind
12    ADD_FLOAT_SERIALIZER( ParticleSpeed, 0.0f );  // _particleSpeed
13    ADD_FLOAT_SERIALIZER( ParticleSize, 0.0f );  // _particleSize
14    ADD_VEC4_SERIALIZER( ParticleColor, osg::Vec4() );  // _particleColor
15    ADD_FLOAT_SERIALIZER( MaximumParticleDensity, 0.0f );  // _maximumParticleDensity
16    ADD_VEC3_SERIALIZER( CellSize, osg::Vec3() );  // _cellSize
17    ADD_FLOAT_SERIALIZER( NearTransition, 0.0f );  // _nearTransition
18    ADD_FLOAT_SERIALIZER( FarTransition, 0.0f );  // _farTransition
19    ADD_BOOL_SERIALIZER( UseFarLineSegments, false );  // _useFarLineSegments
20    ADD_OBJECT_SERIALIZER( Fog, osg::Fog, NULL );  // _fog
21}
Note: See TracBrowser for help on using the browser.