Mercurial > fife-parpg
diff engine/core/view/camera.cpp @ 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 | 07b1cf8e92b5 |
line wrap: on
line diff
--- a/engine/core/view/camera.cpp Wed Oct 06 14:09:24 2010 +0000 +++ b/engine/core/view/camera.cpp Wed Oct 06 15:49:53 2010 +0000 @@ -129,7 +129,7 @@ delete r_it->second; } m_renderers.clear(); - m_renderbackend->setClearScreen(true); + m_renderbackend->setClearBackBuffer(true); delete m_map_observer; } @@ -448,10 +448,9 @@ } if(trec1 && trec2 && trec3 && trec4) { - m_renderbackend->setClearScreen(false); return false; } - m_renderbackend->setClearScreen(true); + m_renderbackend->clearBackBuffer(); return true; }