diff options
Diffstat (limited to 'src/openglgraphics.h')
-rw-r--r-- | src/openglgraphics.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/openglgraphics.h b/src/openglgraphics.h index 02d628af0..650ad668a 100644 --- a/src/openglgraphics.h +++ b/src/openglgraphics.h @@ -28,9 +28,11 @@ #include "main.h" #include "graphics.h" -#define NO_SDL_GLEXT +//#define NO_SDL_GLEXT +#define GL_GLEXT_PROTOTYPES 1 #include <SDL_opengl.h> +//#include <GL/glext.h> class OpenGLGraphics : public Graphics { @@ -138,6 +140,8 @@ class OpenGLGraphics : public Graphics */ SDL_Surface *getScreenshot(); + void prepareScreenshot(); + bool drawNet(int x1, int y1, int x2, int y2, int width, int height); static void bindTexture(GLenum target, GLuint texture); @@ -154,6 +158,9 @@ class OpenGLGraphics : public Graphics bool mAlpha, mTexture; bool mColorAlpha; bool mSync; + GLuint mFboId; + GLuint mTextureId; + GLuint mRboId; }; #endif |