delete shadow_renderer;
}
-void RenderingCore::initialize()
-{
- if (shadow_renderer)
- pipeline->addStep<RenderShadowMapStep>();
-
- createPipeline();
-}
-
void RenderingCore::draw(video::SColor _skycolor, bool _show_hud, bool _show_minimap,
bool _draw_wield_tool, bool _draw_crosshair)
{
v2f virtual_size_scale;
v2u32 virtual_size { 0, 0 };
- virtual void createPipeline() {}
-
public:
RenderingCore(IrrlichtDevice *device, Client *client, Hud *hud,
ShadowRenderer *shadow_renderer, RenderPipeline *pipeline,
RenderingCore &operator=(const RenderingCore &) = delete;
RenderingCore &operator=(RenderingCore &&) = delete;
- void initialize();
void draw(video::SColor _skycolor, bool _show_hud, bool _show_minimap,
bool _draw_wield_tool, bool _draw_crosshair);
{
const std::string &draw_mode = g_settings->get("3d_mode");
core.reset(createRenderingCore(draw_mode, m_device, client, hud));
- core->initialize();
}
void RenderingEngine::finalize()