diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-31 00:46:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-31 03:02:31 +0300 |
commit | e513b3e1d7334258c82febb873ccab88c9f8bb83 (patch) | |
tree | 3e75163c59b75bb8b606bc2c38244481869cac87 /src/safeopenglgraphics.h | |
parent | 5cbd0d2cb7086fda592c00dbc3b07d06af95f080 (diff) | |
download | manaplus-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.h | 10 |
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; }; |