Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
core.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4// Copyright (C) 2017 numzero, Lobachevskiy Vitaliy <numzer0@yandex.ru>
5
6#pragma once
8
9namespace irr
10{
11 class IrrlichtDevice;
12}
13
14class ShadowRenderer;
15class Camera;
16class Client;
17class Hud;
18class Minimap;
19class RenderPipeline;
20class RenderTarget;
21
23{
24protected:
25 IrrlichtDevice *device;
29
31
34
35public:
36 RenderingCore(IrrlichtDevice *device, Client *client, Hud *hud,
39 RenderingCore(const RenderingCore &) = delete;
41 virtual ~RenderingCore();
42
45
46 void draw(video::SColor _skycolor, bool _show_hud,
47 bool _draw_wield_tool, bool _draw_crosshair);
48
49 v2u32 getVirtualSize() const;
50
52};
Definition camera.h:68
Definition client.h:105
Definition hud.h:35
Definition minimap.h:101
Render Pipeline provides a flexible way to execute rendering steps in the engine.
Definition pipeline.h:353
Represents a render target (screen or framebuffer)
Definition pipeline.h:78
Definition core.h:23
RenderingCore(IrrlichtDevice *device, Client *client, Hud *hud, ShadowRenderer *shadow_renderer, RenderPipeline *pipeline, v2f virtual_size_scale)
Definition core.cpp:11
ShadowRenderer * get_shadow_renderer()
Definition core.h:51
RenderingCore & operator=(RenderingCore &&)=delete
RenderingCore(RenderingCore &&)=delete
v2u32 virtual_size
Definition core.h:33
virtual ~RenderingCore()
Definition core.cpp:18
RenderingCore(const RenderingCore &)=delete
Hud * hud
Definition core.h:27
v2u32 getVirtualSize() const
Definition core.cpp:39
IrrlichtDevice * device
Definition core.h:25
void draw(video::SColor _skycolor, bool _show_hud, bool _draw_wield_tool, bool _draw_crosshair)
Definition core.cpp:24
RenderPipeline * pipeline
Definition core.h:30
v2f virtual_size_scale
Definition core.h:32
ShadowRenderer * shadow_renderer
Definition core.h:28
RenderingCore & operator=(const RenderingCore &)=delete
Client * client
Definition core.h:26
Definition dynamicshadowsrender.h:39
core::vector2d< f32 > v2f
Definition irr_v2d.h:11
core::vector2d< u32 > v2u32
Definition irr_v2d.h:14
Definition activeobjectmgr.cpp:11
Definition clientmap.h:30