comparison engine/core/view/camera.cpp @ 549:c9113e23b004

*Removed the ExactModellCoordinate object from the camera constructor. Attention: Little API change to the camera/map.
author helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 11 Jun 2010 21:29:58 +0000
parents f45e3e2995e0
children b2feacaed53c
comparison
equal deleted inserted replaced
548:f45e3e2995e0 549:c9113e23b004
77 }; 77 };
78 78
79 Camera::Camera(const std::string& id, 79 Camera::Camera(const std::string& id,
80 Layer *layer, 80 Layer *layer,
81 const Rect& viewport, 81 const Rect& viewport,
82 const ExactModelCoordinate& emc,
83 RenderBackend* renderbackend, 82 RenderBackend* renderbackend,
84 ImagePool* ipool, 83 ImagePool* ipool,
85 AnimationPool* apool): 84 AnimationPool* apool):
86 m_id(id), 85 m_id(id),
87 m_matrix(), 86 m_matrix(),
111 m_viewport = viewport; 110 m_viewport = viewport;
112 m_map_observer = new MapObserver(this); 111 m_map_observer = new MapObserver(this);
113 m_map = 0; 112 m_map = 0;
114 Location location; 113 Location location;
115 location.setLayer(layer); 114 location.setLayer(layer);
116 location.setExactLayerCoordinates(emc);
117 setLocation(location); 115 setLocation(location);
118 } 116 }
119 117
120 Camera::~Camera() { 118 Camera::~Camera() {
121 // Trigger removal of LayerCaches and MapObserver 119 // Trigger removal of LayerCaches and MapObserver