#pragma once #include "inode.h" #include namespace particles { class IRenderableParticle; typedef std::shared_ptr IRenderableParticlePtr; /// Interface for a Node containing a particle system class IParticleNode: public virtual scene::INode { public: // Get the reference to the render particle this node is containing virtual IRenderableParticlePtr getParticle() const = 0; }; typedef std::shared_ptr IParticleNodePtr; /// Test if a node is a particle node inline bool isParticleNode(const scene::INodePtr& node) { return (dynamic_cast(node.get()) != NULL); } } // namespace