diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-06-22 21:47:53 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-23 12:46:37 +0300 |
commit | 99cb204d29a63bf5f4edb40b25f4fc1a6605fbd1 (patch) | |
tree | e6dc5588927460dbda4dccb002fb1e9c48823088 /src/particleemitter.h | |
parent | 493cc14facb80c6c86c57ef379131e56a0161215 (diff) | |
download | mv-99cb204d29a63bf5f4edb40b25f4fc1a6605fbd1.tar.gz mv-99cb204d29a63bf5f4edb40b25f4fc1a6605fbd1.tar.bz2 mv-99cb204d29a63bf5f4edb40b25f4fc1a6605fbd1.tar.xz mv-99cb204d29a63bf5f4edb40b25f4fc1a6605fbd1.zip |
Made possible to separate the dye colors and channels
for particle effects.
It is now possible to write, for instance:
<particlefx>my-particle-file.xml|#cbcb78,345678</particlefx>
and in my-particle-file.xml:
...
<property image="my-image.png|W" />
...
This will permit the use (and reuse) of generic particle files.
Conflicts:
src/particle.cpp
src/particleemitter.cpp
src/particleemitter.h
src/simpleanimation.cpp
Diffstat (limited to 'src/particleemitter.h')
-rw-r--r-- | src/particleemitter.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/particleemitter.h b/src/particleemitter.h index 5a68584c6..e82483370 100644 --- a/src/particleemitter.h +++ b/src/particleemitter.h @@ -43,11 +43,9 @@ class Particle; class ParticleEmitter { public: - /** - * Constructor. - */ - ParticleEmitter(xmlNodePtr emitterNode, Particle *target, - Map *map, int rotation = 0); + ParticleEmitter(xmlNodePtr emitterNode, Particle *target, Map *map, + int rotation = 0, + const std::string& dyePalettes = std::string()); /** * Copy Constructor (necessary for reference counting of particle images) |