From 35e50365dada180dce74eafd63f1cc35555d14f8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 12 Nov 2005 13:38:32 +0000 Subject: [PATCH] Added support for ConnectedParticleSystem. --- .../osgParticle/dot_osgParticle.dsp | 4 +++ src/osgPlugins/osgParticle/GNUmakefile | 1 + .../IO_ConnectedParticleSystem.cpp | 36 +++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 src/osgPlugins/osgParticle/IO_ConnectedParticleSystem.cpp diff --git a/VisualStudio/osgPlugins/osgParticle/dot_osgParticle.dsp b/VisualStudio/osgPlugins/osgParticle/dot_osgParticle.dsp index de95550a6..f4eb2826e 100644 --- a/VisualStudio/osgPlugins/osgParticle/dot_osgParticle.dsp +++ b/VisualStudio/osgPlugins/osgParticle/dot_osgParticle.dsp @@ -108,6 +108,10 @@ SOURCE=..\..\..\src\osgPlugins\osgParticle\IO_CenteredPlacer.cpp # End Source File # Begin Source File +SOURCE=..\..\..\src\osgPlugins\osgParticle\IO_ConnectedParticleSystem.cpp +# End Source File +# Begin Source File + SOURCE=..\..\..\src\osgPlugins\osgParticle\IO_Emitter.cpp # End Source File # Begin Source File diff --git a/src/osgPlugins/osgParticle/GNUmakefile b/src/osgPlugins/osgParticle/GNUmakefile index fe5fa974a..7b2e1f86b 100644 --- a/src/osgPlugins/osgParticle/GNUmakefile +++ b/src/osgPlugins/osgParticle/GNUmakefile @@ -5,6 +5,7 @@ CXXFILES =\ IO_AccelOperator.cpp\ IO_AngularAccelOperator.cpp\ IO_CenteredPlacer.cpp\ + IO_ConnectedParticleSystem.cpp\ IO_Emitter.cpp\ IO_FluidFrictionOperator.cpp\ IO_ForceOperator.cpp\ diff --git a/src/osgPlugins/osgParticle/IO_ConnectedParticleSystem.cpp b/src/osgPlugins/osgParticle/IO_ConnectedParticleSystem.cpp new file mode 100644 index 000000000..9b5741051 --- /dev/null +++ b/src/osgPlugins/osgParticle/IO_ConnectedParticleSystem.cpp @@ -0,0 +1,36 @@ + +#include + +#include + +#include +#include +#include + +#include +#include + +extern bool read_particle(osgDB::Input &fr, osgParticle::Particle &P); +extern void write_particle(const osgParticle::Particle &P, osgDB::Output &fw); + +bool ConnectedParticleSystem_readLocalData(osg::Object &obj, osgDB::Input &fr); +bool ConnectedParticleSystem_writeLocalData(const osg::Object &obj, osgDB::Output &fw); + +osgDB::RegisterDotOsgWrapperProxy ConnectedParticleSystem_Proxy +( + new osgParticle::ConnectedParticleSystem, + "ConnectedParticleSystem", + "Object Drawable ParticleSystem ConnectedParticleSystem", + ConnectedParticleSystem_readLocalData, + ConnectedParticleSystem_writeLocalData +); + +bool ConnectedParticleSystem_readLocalData(osg::Object&, osgDB::Input&) +{ + return false; +} + +bool ConnectedParticleSystem_writeLocalData(const osg::Object&, osgDB::Output&) +{ + return false; +}