Mercurial > fife-parpg
diff engine/core/video/renderbackend.h @ 633:46b95d06c8c2
* Renamed RenderBackend::isClearNeeded() to RenderBackend::setClearScreen(). It is no longer pure virtual. Also documented it's functionality.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 06 Oct 2010 14:09:24 +0000 |
parents | 356634098bd9 |
children | 5f381fa34769 |
line wrap: on
line diff
--- a/engine/core/video/renderbackend.h Tue Oct 05 19:42:54 2010 +0000 +++ b/engine/core/video/renderbackend.h Wed Oct 06 14:09:24 2010 +0000 @@ -103,7 +103,10 @@ */ virtual Image* createImage(SDL_Surface* surface) = 0; - virtual void isClearNeeded(bool clear) = 0; + /** Sets if the screen (backbuffer) should be cleared before rendering the next frame + * @param clear true = clear screen before next frame, false = do not clear screen + */ + void setClearScreen(bool clear) { m_clear = clear; }; /** Returns a pointer to the main screen Image * @return A pointer to the main screen Image, or 0 if no mainscreen exists. @@ -146,6 +149,7 @@ protected: Image* m_screen; + bool m_clear; bool m_isalphaoptimized; unsigned int m_chunkingsize; bool m_iscolorkeyenabled;