diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-19 22:17:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-19 22:17:55 +0300 |
commit | fe9994c45c1e464125186ae14e482ae155d9ec53 (patch) | |
tree | 0eef772d50979f869138a80a8ca983de4e5da900 /src/resources/dye.h | |
parent | 582900e6c698823fc95bc6653707a328e96dd075 (diff) | |
download | mv-fe9994c45c1e464125186ae14e482ae155d9ec53.tar.gz mv-fe9994c45c1e464125186ae14e482ae155d9ec53.tar.bz2 mv-fe9994c45c1e464125186ae14e482ae155d9ec53.tar.xz mv-fe9994c45c1e464125186ae14e482ae155d9ec53.zip |
improve a bit normal dye code.
move dye code to methods.
Diffstat (limited to 'src/resources/dye.h')
-rw-r--r-- | src/resources/dye.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/resources/dye.h b/src/resources/dye.h index e8b4ae94e..ba0b378d0 100644 --- a/src/resources/dye.h +++ b/src/resources/dye.h @@ -108,11 +108,6 @@ class Dye final ~Dye(); /** - * Modifies a pixel color. - */ - void update(int color[3]) const; - - /** * Fills the blank in a dye placeholder with some palette names. */ static void instantiate(std::string &target, @@ -135,6 +130,10 @@ class Dye final */ int getType() const A_WARN_UNUSED; + void normalDye(uint32_t *pixels, const int bufSize) const; + + void normalOGLDye(uint32_t *pixels, const int bufSize) const; + private: /** * The order of the palettes, as well as their uppercase letter, is: |