bool BaseRenderer::debugMode = true;
-BaseRenderer::BaseRenderer(Scene* pScene) : m_pScene(pScene)
+BaseRenderer::BaseRenderer(ICommandExecutor& executor, Configuration& config)
+: PluginBase(executor, config, Renderer_Api_v1)
+, m_pScene(executor.getScene())
{
LOG_DEBUG("BaseRenderer", "Creating Renderer");
- m_pInputManager = new InputManager(pScene);
- setHealth(HealthRunning);
+ m_pInputManager = new InputManager(m_pScene);
}
BaseRenderer::~BaseRenderer()
{
delete m_pInputManager;
}
- setHealth(HealthStopped);
}
uint BaseRenderer::getLayerTypeCapabilities(LayerType layerType)
{
uint result = 0;
- switch(layerType)
+ switch (layerType)
{
- case Software_2D:
- result = LayerPosition | LayerScalable | LayerOrientable | LayerComposedByAlpha;
- break;
+ case Software_2D:
+ result = LayerPosition | LayerScalable | LayerOrientable | LayerComposedByAlpha;
+ break;
- case Software_2_5D:
- result = LayerPosition | LayerScalable | LayerOrientable | LayerComposedByAlpha;
- break;
+ case Software_2_5D:
+ result = LayerPosition | LayerScalable | LayerOrientable | LayerComposedByAlpha;
+ break;
- default :
- break;
+ default :
+ break;
}
return result;
}