diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-04 17:02:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-04 17:02:05 +0300 |
commit | 6ed69c8769cd6c8c79c77fc8116059b42f3653e7 (patch) | |
tree | 48ede1453da63c58ba02ccc35ab06c3f7a61ddca /src/graphics.h | |
parent | 002656b278ab1c2e09bca8f6ffd2d5c42d57b09c (diff) | |
download | ManaVerse-6ed69c8769cd6c8c79c77fc8116059b42f3653e7.tar.gz ManaVerse-6ed69c8769cd6c8c79c77fc8116059b42f3653e7.tar.bz2 ManaVerse-6ed69c8769cd6c8c79c77fc8116059b42f3653e7.tar.xz ManaVerse-6ed69c8769cd6c8c79c77fc8116059b42f3653e7.zip |
add function to graphics class to set normal and outline colors at once.
Diffstat (limited to 'src/graphics.h')
-rw-r--r-- | src/graphics.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/graphics.h b/src/graphics.h index ff5d47580..705a98ff6 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -343,6 +343,13 @@ class Graphics : public gcn::SDLGraphics void setColor2(const gcn::Color &color) { mColor2 = color; } + void setColorAll(const gcn::Color &color, const gcn::Color &color2) + { + mColor = color; + mColor2 = color2; + mAlpha = (color.a != 255); + } + const gcn::Color &getColor2() const { return mColor2; } |