comparison engine/core/controller/engine.cpp @ 32:75b6394ced14

* remove geometric renderer, its not replaced by the more functional generic renderern * add grouing to generic renderer, probably this should be exported to the client in any way
author spq@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 11 Jul 2008 15:37:16 +0000
parents 788cb9525b2f
children 112fc4af772d
comparison
equal deleted inserted replaced
31:9a9f4447af7c 32:75b6394ced14
72 #include "view/renderers/instancerenderer.h" 72 #include "view/renderers/instancerenderer.h"
73 #include "view/renderers/coordinaterenderer.h" 73 #include "view/renderers/coordinaterenderer.h"
74 #include "view/renderers/floatingtextrenderer.h" 74 #include "view/renderers/floatingtextrenderer.h"
75 #include "view/renderers/cellselectionrenderer.h" 75 #include "view/renderers/cellselectionrenderer.h"
76 #include "view/renderers/blockinginforenderer.h" 76 #include "view/renderers/blockinginforenderer.h"
77 #include "view/renderers/geometricrenderer.h"
78 #include "view/renderers/genericrenderer.h" 77 #include "view/renderers/genericrenderer.h"
79 #include "engine.h" 78 #include "engine.h"
80 79
81 #ifdef USE_COCOA 80 #ifdef USE_COCOA
82 #include <dlfcn.h> 81 #include <dlfcn.h>
243 m_view->addRenderer(new CellSelectionRenderer(m_renderbackend, 30)); 242 m_view->addRenderer(new CellSelectionRenderer(m_renderbackend, 30));
244 m_view->addRenderer(new BlockingInfoRenderer(m_renderbackend, 40)); 243 m_view->addRenderer(new BlockingInfoRenderer(m_renderbackend, 40));
245 m_view->addRenderer(new FloatingTextRenderer(m_renderbackend, 50, dynamic_cast<AbstractFont*>(m_defaultfont))); 244 m_view->addRenderer(new FloatingTextRenderer(m_renderbackend, 50, dynamic_cast<AbstractFont*>(m_defaultfont)));
246 m_view->addRenderer(new QuadTreeRenderer(m_renderbackend, 60)); 245 m_view->addRenderer(new QuadTreeRenderer(m_renderbackend, 60));
247 m_view->addRenderer(new CoordinateRenderer(m_renderbackend, 70, dynamic_cast<AbstractFont*>(m_defaultfont))); 246 m_view->addRenderer(new CoordinateRenderer(m_renderbackend, 70, dynamic_cast<AbstractFont*>(m_defaultfont)));
248 m_view->addRenderer(new GeometricRenderer(m_renderbackend, 80)); 247 m_view->addRenderer(new GenericRenderer(m_renderbackend, 80, m_imagepool, m_animpool));
249 m_view->addRenderer(new GenericRenderer(m_renderbackend, 100, m_imagepool, m_animpool));
250 m_cursor = new Cursor(m_imagepool, m_animpool, m_renderbackend); 248 m_cursor = new Cursor(m_imagepool, m_animpool, m_renderbackend);
251 FL_LOG(_log, "Engine intialized"); 249 FL_LOG(_log, "Engine intialized");
252 } 250 }
253 251
254 Engine::~Engine() { 252 Engine::~Engine() {