comparison engine/core/view/camera.cpp @ 432:4f2752d45458

This changes the behavior of Camera::resetRenderers(). It will no longer activate all layers for every renderer. This is now up to the clients to do. It also adds some code to the map loader that will automatically activate the layers in the InstanceRenderer. Clients that use the any of the renderers will now have to activate the layer they want to use. Also updated rio_de_hola and the editor to reflect changes. fixes[t:457]
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Wed, 24 Feb 2010 20:03:52 +0000
parents 9d94f4676d17
children 16c2b3ee59ce
comparison
equal deleted inserted replaced
431:f44b149f63e7 432:4f2752d45458
466 void Camera::resetRenderers() { 466 void Camera::resetRenderers() {
467 std::map<std::string, RendererBase*>::iterator r_it = m_renderers.begin(); 467 std::map<std::string, RendererBase*>::iterator r_it = m_renderers.begin();
468 for (; r_it != m_renderers.end(); ++r_it) { 468 for (; r_it != m_renderers.end(); ++r_it) {
469 Map* map = m_location.getMap(); 469 Map* map = m_location.getMap();
470 r_it->second->reset(); 470 r_it->second->reset();
471 r_it->second->activateAllLayers(map);
472 } 471 }
473 } 472 }
474 473
475 void Camera::render() { 474 void Camera::render() {
476 ScreenPoint cammove = m_prev_origo - m_cur_origo; 475 ScreenPoint cammove = m_prev_origo - m_cur_origo;