summaryrefslogtreecommitdiff
path: root/include/SParticle.h
diff options
context:
space:
mode:
authorMirrorbot <mirrorbot@cogarr.net>2025-12-27 17:53:06 -0600
committerMirrorbot <mirrorbot@cogarr.net>2025-12-27 17:53:06 -0600
commit71e94ee161447b84c0eaabf6567f8fa62262cd3e (patch)
tree391064cc6173a6fe75069af2fdc1978af12f623e /include/SParticle.h
downloadirrlicht-master.tar.gz
irrlicht-master.tar.bz2
irrlicht-master.zip
Inital commitHEADmaster
Diffstat (limited to 'include/SParticle.h')
-rw-r--r--include/SParticle.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/include/SParticle.h b/include/SParticle.h
new file mode 100644
index 0000000..d1507a1
--- /dev/null
+++ b/include/SParticle.h
@@ -0,0 +1,56 @@
+// Copyright (C) 2002-2012 Nikolaus Gebhardt
+// This file is part of the "Irrlicht Engine".
+// For conditions of distribution and use, see copyright notice in irrlicht.h
+
+#ifndef __S_PARTICLE_H_INCLUDED__
+#define __S_PARTICLE_H_INCLUDED__
+
+#include "vector3d.h"
+#include "dimension2d.h"
+#include "SColor.h"
+
+namespace irr
+{
+namespace scene
+{
+ //! Struct for holding particle data
+ struct SParticle
+ {
+ //! Position of the particle
+ core::vector3df pos;
+
+ //! Direction and speed of the particle
+ core::vector3df vector;
+
+ //! Start life time of the particle
+ u32 startTime;
+
+ //! End life time of the particle
+ u32 endTime;
+
+ //! Current color of the particle
+ video::SColor color;
+
+ //! Original color of the particle.
+ /** That's the color of the particle it had when it was emitted. */
+ video::SColor startColor;
+
+ //! Original direction and speed of the particle.
+ /** The direction and speed the particle had when it was emitted. */
+ core::vector3df startVector;
+
+ //! Scale of the particle.
+ /** The current scale of the particle. */
+ core::dimension2df size;
+
+ //! Original scale of the particle.
+ /** The scale of the particle when it was emitted. */
+ core::dimension2df startSize;
+ };
+
+
+} // end namespace scene
+} // end namespace irr
+
+#endif
+