summaryrefslogtreecommitdiff
path: root/src/safeopenglgraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-31 00:46:31 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-31 03:02:31 +0300
commite513b3e1d7334258c82febb873ccab88c9f8bb83 (patch)
tree3e75163c59b75bb8b606bc2c38244481869cac87 /src/safeopenglgraphics.h
parent5cbd0d2cb7086fda592c00dbc3b07d06af95f080 (diff)
downloadmanaplus-e513b3e1d7334258c82febb873ccab88c9f8bb83.tar.gz
manaplus-e513b3e1d7334258c82febb873ccab88c9f8bb83.tar.bz2
manaplus-e513b3e1d7334258c82febb873ccab88c9f8bb83.tar.xz
manaplus-e513b3e1d7334258c82febb873ccab88c9f8bb83.zip
Improve OpenGL change color speed.
Diffstat (limited to 'src/safeopenglgraphics.h')
-rw-r--r--src/safeopenglgraphics.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/safeopenglgraphics.h b/src/safeopenglgraphics.h
index a1d744282..a6f22182c 100644
--- a/src/safeopenglgraphics.h
+++ b/src/safeopenglgraphics.h
@@ -141,7 +141,15 @@ class SafeOpenGLGraphics : public Graphics
void setTexturingAndBlending(bool enable);
private:
- bool mAlpha, mTexture;
+ void inline setColorAlpha(float alpha);
+
+ void inline restoreColor();
+
+ bool mAlpha;
+ bool mTexture;
+ bool mIsByteColor;
+ gcn::Color mByteColor;
+ float mFloatColor;
bool mColorAlpha;
FBOInfo mFbo;
};