comparison engine/core/view/camera.cpp @ 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
comparison
equal deleted inserted replaced
632:a7909cdcdc85 633:46b95d06c8c2
127 std::map<std::string, RendererBase*>::iterator r_it = m_renderers.begin(); 127 std::map<std::string, RendererBase*>::iterator r_it = m_renderers.begin();
128 for(; r_it != m_renderers.end(); ++r_it) { 128 for(; r_it != m_renderers.end(); ++r_it) {
129 delete r_it->second; 129 delete r_it->second;
130 } 130 }
131 m_renderers.clear(); 131 m_renderers.clear();
132 m_renderbackend->isClearNeeded(true); 132 m_renderbackend->setClearScreen(true);
133 delete m_map_observer; 133 delete m_map_observer;
134 } 134 }
135 135
136 void Camera::setTilt(double tilt) { 136 void Camera::setTilt(double tilt) {
137 if(m_tilt != tilt) { 137 if(m_tilt != tilt) {
446 } 446 }
447 } 447 }
448 } 448 }
449 449
450 if(trec1 && trec2 && trec3 && trec4) { 450 if(trec1 && trec2 && trec3 && trec4) {
451 m_renderbackend->isClearNeeded(false); 451 m_renderbackend->setClearScreen(false);
452 return false; 452 return false;
453 } 453 }
454 m_renderbackend->isClearNeeded(true); 454 m_renderbackend->setClearScreen(true);
455 return true; 455 return true;
456 } 456 }
457 457
458 void Camera::getMatchingInstances(ScreenPoint screen_coords, Layer& layer, std::list<Instance*>& instances) { 458 void Camera::getMatchingInstances(ScreenPoint screen_coords, Layer& layer, std::list<Instance*>& instances) {
459 instances.clear(); 459 instances.clear();