comparison engine/core/view/camera.cpp @ 422:9d94f4676d17

Moved the management of cameras into the Map class. The View class no longer exists since it now serves no purpose. The engine class itself holds the renderers and these get passed to each map that is loaded and then passed to each camera on each map. This change makes it possible for multiple maps to be loaded at the same time with the same camera id without a name clash. fixes[t:342]
author vtchill@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 12 Feb 2010 06:34:50 +0000
parents 219b8036708c
children 4f2752d45458
comparison
equal deleted inserted replaced
421:293e812316c0 422:9d94f4676d17
54 namespace FIFE { 54 namespace FIFE {
55 static Logger _log(LM_CAMERA); 55 static Logger _log(LM_CAMERA);
56 56
57 Camera::Camera(const std::string& id, 57 Camera::Camera(const std::string& id,
58 Layer *layer, 58 Layer *layer,
59 Rect viewport, 59 const Rect& viewport,
60 ExactModelCoordinate emc, 60 const ExactModelCoordinate& emc,
61 RenderBackend* renderbackend, 61 RenderBackend* renderbackend,
62 ImagePool* ipool, 62 ImagePool* ipool,
63 AnimationPool* apool): 63 AnimationPool* apool):
64 m_id(id), 64 m_id(id),
65 m_matrix(), 65 m_matrix(),