SParticle.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Copyright (C) 2002-2012 Nikolaus Gebhardt
  2. // This file is part of the "Irrlicht Engine".
  3. // For conditions of distribution and use, see copyright notice in irrlicht.h
  4. #ifndef S_PARTICLE_H_INCLUDED
  5. #define S_PARTICLE_H_INCLUDED
  6. #include "vector3d.h"
  7. #include "dimension2d.h"
  8. #include "SColor.h"
  9. namespace irr
  10. {
  11. namespace scene
  12. {
  13. //! Struct for holding particle data
  14. struct SParticle
  15. {
  16. //! Position of the particle
  17. core::vector3df pos;
  18. //! Direction and speed of the particle
  19. core::vector3df vector;
  20. //! Start life time of the particle
  21. u32 startTime;
  22. //! End life time of the particle
  23. u32 endTime;
  24. //! Current color of the particle
  25. video::SColor color;
  26. //! Original color of the particle.
  27. /** That's the color of the particle it had when it was emitted. */
  28. video::SColor startColor;
  29. //! Original direction and speed of the particle.
  30. /** The direction and speed the particle had when it was emitted. */
  31. core::vector3df startVector;
  32. //! Scale of the particle.
  33. /** The current scale of the particle. */
  34. core::dimension2df size;
  35. //! Original scale of the particle.
  36. /** The scale of the particle when it was emitted. */
  37. core::dimension2df startSize;
  38. };
  39. } // end namespace scene
  40. } // end namespace irr
  41. #endif