From fe9994c45c1e464125186ae14e482ae155d9ec53 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 19 Aug 2013 22:17:05 +0300 Subject: improve a bit normal dye code. move dye code to methods. --- src/resources/dye.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/resources/dye.h') 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 @@ -107,11 +107,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. */ @@ -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: -- cgit v1.2.3-60-g2f50