summaryrefslogtreecommitdiff
path: root/src/simpleanimation.h
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-06-22 21:47:53 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-06-22 21:47:53 +0200
commitba5b70974c5dfa0be3105e72a0a012455b28e7a9 (patch)
treeb79f9f46cc30eb2a1196b79392831af144fabc22 /src/simpleanimation.h
parent852ff45c35c422b5264487669934b392a8657465 (diff)
downloadmana-ba5b70974c5dfa0be3105e72a0a012455b28e7a9.tar.gz
mana-ba5b70974c5dfa0be3105e72a0a012455b28e7a9.tar.bz2
mana-ba5b70974c5dfa0be3105e72a0a012455b28e7a9.tar.xz
mana-ba5b70974c5dfa0be3105e72a0a012455b28e7a9.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.
Diffstat (limited to 'src/simpleanimation.h')
-rw-r--r--src/simpleanimation.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/simpleanimation.h b/src/simpleanimation.h
index e679442e..b3b21ee2 100644
--- a/src/simpleanimation.h
+++ b/src/simpleanimation.h
@@ -45,7 +45,8 @@ class SimpleAnimation
/**
* Creates a simple animation that creates its animation from XML Data.
*/
- SimpleAnimation(xmlNodePtr animationNode);
+ SimpleAnimation(xmlNodePtr animationNode,
+ const std::string& dyePalettes = std::string());
~SimpleAnimation();
@@ -65,7 +66,8 @@ class SimpleAnimation
Image *getCurrentImage() const;
private:
- void initializeAnimation(xmlNodePtr animationNode);
+ void initializeAnimation(xmlNodePtr animationNode,
+ const std::string& dyePalettes = std::string());
/** The hosted animation. */
Animation *mAnimation;