diff options
author | khonkhortisan <khonkhortisan@gmail.com> | 2013-04-22 11:35:10 -0700 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-01-13 17:34:56 -0500 |
commit | 2b1eff772524fca8249fd64028e5cbfeabc127a0 (patch) | |
tree | f7d1a231de13db304a2ea1fb945e41b08b38f0f1 /src/particles.h | |
parent | a4c5f10ecf4fd49cfbf73580b00c0b4f12ee40cf (diff) | |
download | minetest-2b1eff772524fca8249fd64028e5cbfeabc127a0.tar.gz minetest-2b1eff772524fca8249fd64028e5cbfeabc127a0.tar.bz2 minetest-2b1eff772524fca8249fd64028e5cbfeabc127a0.zip |
Allow vertical axis particle rotation constraint
Use tables for adding particles, deprecate former way.
separate particles(pawner) definition, add default values, work with no
arguments
Diffstat (limited to 'src/particles.h')
-rw-r--r-- | src/particles.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/particles.h b/src/particles.h index 327dcbc9e..7c89a79bf 100644 --- a/src/particles.h +++ b/src/particles.h @@ -42,6 +42,7 @@ class Particle : public scene::ISceneNode float expirationtime, float size, bool collisiondetection, + bool vertical, video::ITexture *texture, v2f texpos, v2f texsize @@ -92,6 +93,7 @@ private: float m_size; u8 m_light; bool m_collisiondetection; + bool m_vertical; }; class ParticleSpawner @@ -108,6 +110,7 @@ class ParticleSpawner float minexptime, float maxexptime, float minsize, float maxsize, bool collisiondetection, + bool vertical, video::ITexture *texture, u32 id); @@ -138,6 +141,7 @@ class ParticleSpawner video::ITexture *m_texture; std::vector<float> m_spawntimes; bool m_collisiondetection; + bool m_vertical; }; void allparticles_step (float dtime, ClientEnvironment &env); |