summaryrefslogtreecommitdiff
path: root/src/nullopenglgraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-04 17:02:05 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-04 17:02:05 +0300
commit6ed69c8769cd6c8c79c77fc8116059b42f3653e7 (patch)
tree48ede1453da63c58ba02ccc35ab06c3f7a61ddca /src/nullopenglgraphics.h
parent002656b278ab1c2e09bca8f6ffd2d5c42d57b09c (diff)
downloadmanaplus-6ed69c8769cd6c8c79c77fc8116059b42f3653e7.tar.gz
manaplus-6ed69c8769cd6c8c79c77fc8116059b42f3653e7.tar.bz2
manaplus-6ed69c8769cd6c8c79c77fc8116059b42f3653e7.tar.xz
manaplus-6ed69c8769cd6c8c79c77fc8116059b42f3653e7.zip
add function to graphics class to set normal and outline colors at once.
Diffstat (limited to 'src/nullopenglgraphics.h')
-rw-r--r--src/nullopenglgraphics.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nullopenglgraphics.h b/src/nullopenglgraphics.h
index 61ec8e0f3..23d272e70 100644
--- a/src/nullopenglgraphics.h
+++ b/src/nullopenglgraphics.h
@@ -132,6 +132,13 @@ class NullOpenGLGraphics final : public Graphics
mColorAlpha = (color.a != 255);
}
+ void setColorAll(const gcn::Color &color, const gcn::Color &color2)
+ {
+ mColor = color;
+ mColor2 = color2;
+ mColorAlpha = (color.a != 255);
+ }
+
void drawPoint(int x, int y);
void drawLine(int x1, int y1, int x2, int y2);