diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-02 21:47:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-02 21:47:15 +0300 |
commit | 033baf5710cc021acc93ff7dfce6eff6c2e26cd9 (patch) | |
tree | 5881daaa3b5db76a9dc9ad9a64e057e6c3375761 /src/opengl1graphics.h | |
parent | 6d51edf278effec3145d4036712cda7a2a5b0aef (diff) | |
download | manaverse-033baf5710cc021acc93ff7dfce6eff6c2e26cd9.tar.gz manaverse-033baf5710cc021acc93ff7dfce6eff6c2e26cd9.tar.bz2 manaverse-033baf5710cc021acc93ff7dfce6eff6c2e26cd9.tar.xz manaverse-033baf5710cc021acc93ff7dfce6eff6c2e26cd9.zip |
Add FBO for screenshots to safe opengl also.
Diffstat (limited to 'src/opengl1graphics.h')
-rw-r--r-- | src/opengl1graphics.h | 5 |
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 |