From 6ed69c8769cd6c8c79c77fc8116059b42f3653e7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 4 May 2013 17:02:05 +0300 Subject: add function to graphics class to set normal and outline colors at once. --- src/mobileopenglgraphics.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mobileopenglgraphics.h') diff --git a/src/mobileopenglgraphics.h b/src/mobileopenglgraphics.h index 9c813dee2..60d7fdf27 100644 --- a/src/mobileopenglgraphics.h +++ b/src/mobileopenglgraphics.h @@ -132,6 +132,13 @@ class MobileOpenGLGraphics 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); -- cgit v1.2.3-60-g2f50