comparison engine/core/controller/engine.cpp @ 23:e5e2fec68834

add generic renderer
author spq@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 11 Jul 2008 10:42:31 +0000
parents ae46cee19e76
children 788cb9525b2f
comparison
equal deleted inserted replaced
22:aa0aea2572c9 23:e5e2fec68834
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" 77 #include "view/renderers/geometricrenderer.h"
78 #include "view/renderers/genericrenderer.h"
78 #include "engine.h" 79 #include "engine.h"
79 80
80 #ifdef USE_COCOA 81 #ifdef USE_COCOA
81 #include <dlfcn.h> 82 #include <dlfcn.h>
82 83
243 m_view->addRenderer(new BlockingInfoRenderer(m_renderbackend, 40)); 244 m_view->addRenderer(new BlockingInfoRenderer(m_renderbackend, 40));
244 m_view->addRenderer(new FloatingTextRenderer(m_renderbackend, 50, dynamic_cast<AbstractFont*>(m_defaultfont))); 245 m_view->addRenderer(new FloatingTextRenderer(m_renderbackend, 50, dynamic_cast<AbstractFont*>(m_defaultfont)));
245 m_view->addRenderer(new QuadTreeRenderer(m_renderbackend, 60)); 246 m_view->addRenderer(new QuadTreeRenderer(m_renderbackend, 60));
246 m_view->addRenderer(new CoordinateRenderer(m_renderbackend, 70, dynamic_cast<AbstractFont*>(m_defaultfont))); 247 m_view->addRenderer(new CoordinateRenderer(m_renderbackend, 70, dynamic_cast<AbstractFont*>(m_defaultfont)));
247 m_view->addRenderer(new GeometricRenderer(m_renderbackend, 80)); 248 m_view->addRenderer(new GeometricRenderer(m_renderbackend, 80));
249 m_view->addRenderer(new GenericRenderer(m_renderbackend, 100));
248 m_cursor = new Cursor(m_imagepool, m_animpool, m_renderbackend); 250 m_cursor = new Cursor(m_imagepool, m_animpool, m_renderbackend);
249 FL_LOG(_log, "Engine intialized"); 251 FL_LOG(_log, "Engine intialized");
250 } 252 }
251 253
252 Engine::~Engine() { 254 Engine::~Engine() {