diff engine/core/model/model.h @ 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 16ea97290dbc
children 69ef061db940
line wrap: on
line diff
--- a/engine/core/model/model.h	Thu Feb 11 04:18:42 2010 +0000
+++ b/engine/core/model/model.h	Fri Feb 12 06:34:50 2010 +0000
@@ -41,6 +41,10 @@
 
 namespace FIFE {
 
+	class RenderBackend;
+	class RendererBase;
+	class ImagePool;
+	class AnimationPool;
 	class MetaModel;
 	class AbstractPather;
 	class Object;
@@ -54,7 +58,8 @@
 		/** Constructor
 		 *
 		 */
-		Model();
+		Model(RenderBackend* renderbackend, const std::vector<RendererBase*>& renderers, 
+				ImagePool* imagepool, AnimationPool* animpool);
 
 		/** Destructor
 		 *
@@ -169,6 +174,12 @@
 		std::vector<CellGrid*> m_adopted_grids;
 		std::vector<CellGrid*> m_created_grids;
 		TimeProvider m_timeprovider;
+
+		RenderBackend* m_renderbackend;
+		ImagePool* m_imagepool;
+		AnimationPool* m_animpool;
+
+		std::vector<RendererBase*> m_renderers;
 	};
 
 }; //FIFE