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/normalopenglgraphics.h | |
parent | 5cbd0d2cb7086fda592c00dbc3b07d06af95f080 (diff) | |
download | manaverse-e513b3e1d7334258c82febb873ccab88c9f8bb83.tar.gz manaverse-e513b3e1d7334258c82febb873ccab88c9f8bb83.tar.bz2 manaverse-e513b3e1d7334258c82febb873ccab88c9f8bb83.tar.xz manaverse-e513b3e1d7334258c82febb873ccab88c9f8bb83.zip |
Improve OpenGL change color speed.
Diffstat (limited to 'src/normalopenglgraphics.h')
-rw-r--r-- | src/normalopenglgraphics.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/normalopenglgraphics.h b/src/normalopenglgraphics.h index 45973941a..972656cc4 100644 --- a/src/normalopenglgraphics.h +++ b/src/normalopenglgraphics.h @@ -166,10 +166,20 @@ class NormalOpenGLGraphics : public Graphics void debugBindTexture(const Image *image); private: + void inline setColorAlpha(float alpha); + + void inline restoreColor(); + GLfloat *mFloatTexArray; GLint *mIntTexArray; GLint *mIntVertArray; - bool mAlpha, mTexture; + bool mAlpha; + bool mTexture; + + bool mIsByteColor; + gcn::Color mByteColor; + float mFloatColor; + bool mColorAlpha; FBOInfo mFbo; #ifdef DEBUG_BIND_TEXTURE |