summaryrefslogtreecommitdiff
path: root/src/opengl1graphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-02 21:47:15 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-02 21:47:15 +0300
commit033baf5710cc021acc93ff7dfce6eff6c2e26cd9 (patch)
tree5881daaa3b5db76a9dc9ad9a64e057e6c3375761 /src/opengl1graphics.h
parent6d51edf278effec3145d4036712cda7a2a5b0aef (diff)
downloadplus-033baf5710cc021acc93ff7dfce6eff6c2e26cd9.tar.gz
plus-033baf5710cc021acc93ff7dfce6eff6c2e26cd9.tar.bz2
plus-033baf5710cc021acc93ff7dfce6eff6c2e26cd9.tar.xz
plus-033baf5710cc021acc93ff7dfce6eff6c2e26cd9.zip
Add FBO for screenshots to safe opengl also.
Diffstat (limited to 'src/opengl1graphics.h')
-rw-r--r--src/opengl1graphics.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/opengl1graphics.h b/src/opengl1graphics.h
index 6ed2d7440..5a2d6c254 100644
--- a/src/opengl1graphics.h
+++ b/src/opengl1graphics.h
@@ -129,6 +129,8 @@ class OpenGL1Graphics : public Graphics
*/
SDL_Surface *getScreenshot();
+ void prepareScreenshot();
+
static void bindTexture(GLenum target, GLuint texture);
static GLuint mLastImage;
@@ -140,6 +142,9 @@ class OpenGL1Graphics : public Graphics
bool mAlpha, mTexture;
bool mColorAlpha;
bool mSync;
+ GLuint mFboId;
+ GLuint mTextureId;
+ GLuint mRboId;
};
#endif