#ifndef __GLSDLSCREEN_H #define __GLSDLSCREEN_H #include #include #include #include "gltexture.h" class GLSDLScreen { private: SDL_Surface *screen; int width, height, bpp; bool opengl; bool glsetup; bool resizable; bool fullscreen; // OpenGL related float znear, zfar; void (*extraglparam)(); int getFlags(); public: GLSDLScreen(); void enableOpenGL(bool); void enableResizable(bool); void enableFullscreen(bool); void setVideoMode(int _width, int _height, int _bpp); void setGLNearFar(float _znear, float _zfar); void enableGLSetup(bool); void setExtraGLParamFunc(void (*extrafunc)()); bool isOK(); bool apply(); }; #endif