Mercurial > fife-parpg
diff engine/core/video/opengl/renderbackendopengl.h @ 634:5f381fa34769
* Added the clearBackBuffer() function to the renderbackends.
* Renamed setClearScreen() to setClearBackBuffer()
* The SDL render backend now honors what was set with setClearBackBuffer()
* Documented testRenderedViewPort()
* The OpenGL backend no longer clears the screen every frame by default. testRenderedViewPort() takes care of clearing the screen for now. Note: if the user overrides the default and enables clearing of the backbuffer that it may be cleared twice in one frame (OpenGL only)!
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 06 Oct 2010 15:49:53 +0000 |
parents | 46b95d06c8c2 |
children | 855ad500f991 |
line wrap: on
line diff
--- a/engine/core/video/opengl/renderbackendopengl.h Wed Oct 06 14:09:24 2010 +0000 +++ b/engine/core/video/opengl/renderbackendopengl.h Wed Oct 06 15:49:53 2010 +0000 @@ -45,6 +45,8 @@ void startFrame(); void endFrame(); void init(); + void clearBackBuffer(); + Image* createMainScreen(unsigned int width, unsigned int height, unsigned char bitsPerPixel, bool fullscreen, const std::string& title, const std::string& icon); Image* createImage(const uint8_t* data, unsigned int width, unsigned int height); Image* createImage(SDL_Surface* surface);