libsegl/glsdlscreen.h

40 lines
718 B
C
Raw Normal View History

#ifndef __GLSDLSCREEN_H
#define __GLSDLSCREEN_H
#include <iostream>
#include <SDL.h>
#include <SDL_opengl.h>
#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