Mercurial > fife-parpg
comparison engine/core/video/opengl/renderbackendopengl.h @ 640:855ad500f991
* Added the ability to set/get the video driver used using the settings interface. Note that the default driver for the OS will be used unless explicitly specified.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 07 Oct 2010 18:37:02 +0000 |
parents | 5f381fa34769 |
children | 6e2151325017 |
comparison
equal
deleted
inserted
replaced
639:685d250f2c2d | 640:855ad500f991 |
---|---|
42 RenderBackendOpenGL(const SDL_Color& colorkey); | 42 RenderBackendOpenGL(const SDL_Color& colorkey); |
43 virtual ~RenderBackendOpenGL(); | 43 virtual ~RenderBackendOpenGL(); |
44 const std::string& getName() const; | 44 const std::string& getName() const; |
45 void startFrame(); | 45 void startFrame(); |
46 void endFrame(); | 46 void endFrame(); |
47 void init(); | 47 void init(const std::string& driver); |
48 void clearBackBuffer(); | 48 void clearBackBuffer(); |
49 | 49 |
50 Image* createMainScreen(unsigned int width, unsigned int height, unsigned char bitsPerPixel, bool fullscreen, const std::string& title, const std::string& icon); | 50 Image* createMainScreen(unsigned int width, unsigned int height, unsigned char bitsPerPixel, bool fullscreen, const std::string& title, const std::string& icon); |
51 Image* createImage(const uint8_t* data, unsigned int width, unsigned int height); | 51 Image* createImage(const uint8_t* data, unsigned int width, unsigned int height); |
52 Image* createImage(SDL_Surface* surface); | 52 Image* createImage(SDL_Surface* surface); |