Mercurial > fife-parpg
comparison engine/core/view/camera.cpp @ 669:46258f467c8c
* Fixed the clear screen problems. The screen is now automatically cleared every frame by the engine if there are no maps loaded. In the process I removed the setClearBackBuffer() function from the RenderBackend.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 08 Nov 2010 21:36:38 +0000 |
parents | e8a799239384 |
children | eb9cad5fb771 |
comparison
equal
deleted
inserted
replaced
668:e8a799239384 | 669:46258f467c8c |
---|---|
129 std::map<std::string, RendererBase*>::iterator r_it = m_renderers.begin(); | 129 std::map<std::string, RendererBase*>::iterator r_it = m_renderers.begin(); |
130 for(; r_it != m_renderers.end(); ++r_it) { | 130 for(; r_it != m_renderers.end(); ++r_it) { |
131 delete r_it->second; | 131 delete r_it->second; |
132 } | 132 } |
133 m_renderers.clear(); | 133 m_renderers.clear(); |
134 m_renderbackend->setClearBackBuffer(true); | |
135 delete m_map_observer; | 134 delete m_map_observer; |
136 } | 135 } |
137 | 136 |
138 void Camera::setTilt(double tilt) { | 137 void Camera::setTilt(double tilt) { |
139 if(m_tilt != tilt) { | 138 if(m_tilt != tilt) { |