Commit 6d9fa7d0 authored by cutealien's avatar cutealien

Make IParticleSystemSceneNode::doParticleSystem public to allow rendering outside scenegraph.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3853 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 438baffc
...@@ -67,6 +67,11 @@ public: ...@@ -67,6 +67,11 @@ public:
//! Remove all currently visible particles //! Remove all currently visible particles
virtual void clearParticles() = 0; virtual void clearParticles() = 0;
//! Do manually update the particles.
//! This should only be called when you want to render the node outside the scenegraph,
//! as the node will care about this otherwise automatically.
virtual void doParticleSystem(u32 time) = 0;
//! Gets the particle emitter, which creates the particles. //! Gets the particle emitter, which creates the particles.
/** \return The particle emitter. Can be 0 if none is set. */ /** \return The particle emitter. Can be 0 if none is set. */
virtual IParticleEmitter* getEmitter() =0; virtual IParticleEmitter* getEmitter() =0;
......
...@@ -193,6 +193,11 @@ public: ...@@ -193,6 +193,11 @@ public:
//! Remove all currently visible particles //! Remove all currently visible particles
virtual void clearParticles(); virtual void clearParticles();
//! Do manually update the particles.
//! This should only be called when you want to render the node outside the scenegraph,
//! as the node will care about this otherwise automatically.
virtual void doParticleSystem(u32 time);
//! Writes attributes of the scene node. //! Writes attributes of the scene node.
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const; virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const;
...@@ -204,7 +209,6 @@ public: ...@@ -204,7 +209,6 @@ public:
private: private:
void doParticleSystem(u32 time);
void reallocateBuffers(); void reallocateBuffers();
core::list<IParticleAffector*> AffectorList; core::list<IParticleAffector*> AffectorList;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment