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

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

From Wang Rui, added osgParticle serializers

Line 
1#include <osgParticle/ConstantRateCounter>
2#include <osgDB/ObjectWrapper>
3#include <osgDB/InputStream>
4#include <osgDB/OutputStream>
5
6REGISTER_OBJECT_WRAPPER( osgParticleConstantRateCounter,
7                         new osgParticle::ConstantRateCounter,
8                         osgParticle::ConstantRateCounter,
9                         "osg::Object osgParticle::Counter osgParticle::ConstantRateCounter" )
10{
11    ADD_INT_SERIALIZER( MinimumNumberOfParticlesToCreate, 0 );  // _minimumNumberOfParticlesToCreate
12    ADD_DOUBLE_SERIALIZER( NumberOfParticlesPerSecondToCreate, 0.0 );  // _numberOfParticlesPerSecondToCreate
13}
Note: See TracBrowser for help on using the browser.