summaryrefslogtreecommitdiff
path: root/src/normalopenglgraphics.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/normalopenglgraphics.h
parent5cbd0d2cb7086fda592c00dbc3b07d06af95f080 (diff)
downloadmv-e513b3e1d7334258c82febb873ccab88c9f8bb83.tar.gz
mv-e513b3e1d7334258c82febb873ccab88c9f8bb83.tar.bz2
mv-e513b3e1d7334258c82febb873ccab88c9f8bb83.tar.xz
mv-e513b3e1d7334258c82febb873ccab88c9f8bb83.zip
Improve OpenGL change color speed.
Diffstat (limited to 'src/normalopenglgraphics.h')
-rw-r--r--src/normalopenglgraphics.h12
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