ParticlePointEmitterFactory.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Copyright (C) 2022 The V-Gears Team
  3. *
  4. * This file is part of V-Gears
  5. *
  6. * V-Gears is free software: you can redistribute it and/or modify it under
  7. * terms of the GNU General Public License as published by the Free Software
  8. * Foundation, version 3.0 (GPLv3) of the License.
  9. *
  10. * V-Gears is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #pragma once
  16. #include "ParticlePointEmitter.h"
  17. #include "../ParticleEmitterFactory.h"
  18. /**
  19. * A particle emitter factory.
  20. */
  21. class PointEmitterFactory : public ParticleEmitterFactory{
  22. public:
  23. /**
  24. * Constructor.
  25. */
  26. PointEmitterFactory(){};
  27. /**
  28. * Destructor.
  29. */
  30. virtual ~PointEmitterFactory(){};
  31. /**
  32. * Retrieves the emitter type.
  33. *
  34. * @return The emitter type (always "Point").
  35. */
  36. Ogre::String GetEmitterType() const{
  37. return "Point";
  38. }
  39. /**
  40. * Creates an emitter.
  41. *
  42. * @return A new {@see PointEmitter}.
  43. */
  44. ParticleEmitter* CreateEmitter(){
  45. return CreateEmitter_<PointEmitter>();
  46. }
  47. };