ParticleEmitterNode.h 721 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. #include <AnKi/Scene/SceneNode.h>
  7. namespace anki {
  8. /// @addtogroup scene
  9. /// @{
  10. /// The particle emitter scene node. This scene node emitts
  11. class ParticleEmitterNode : public SceneNode
  12. {
  13. public:
  14. ParticleEmitterNode(SceneGraph* scene, CString name);
  15. ~ParticleEmitterNode();
  16. Error frameUpdate(Second prevUpdateTime, Second crntTime) override;
  17. private:
  18. class MoveFeedbackComponent;
  19. class ShapeFeedbackComponent;
  20. void onMoveComponentUpdate(MoveComponent& move);
  21. void onShapeUpdate();
  22. };
  23. /// @}
  24. } // end namespace anki