Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
core.h
Go to the documentation of this file.
1/*
2Minetest
3Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4Copyright (C) 2017 numzero, Lobachevskiy Vitaliy <numzer0@yandex.ru>
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU Lesser General Public License as published by
8the Free Software Foundation; either version 2.1 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU Lesser General Public License for more details.
15
16You should have received a copy of the GNU Lesser General Public License along
17with this program; if not, write to the Free Software Foundation, Inc.,
1851 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19*/
20
21#pragma once
23
24class ShadowRenderer;
25class Camera;
26class Client;
27class Hud;
28class Minimap;
29class RenderPipeline;
30class RenderTarget;
31
33{
34protected:
35 IrrlichtDevice *device;
39
41
44
45public:
46 RenderingCore(IrrlichtDevice *device, Client *client, Hud *hud,
49 RenderingCore(const RenderingCore &) = delete;
51 virtual ~RenderingCore();
52
55
56 void draw(video::SColor _skycolor, bool _show_hud,
57 bool _draw_wield_tool, bool _draw_crosshair);
58
59 v2u32 getVirtualSize() const;
60
62};
Definition: camera.h:83
Definition: client.h:119
Definition: hud.h:36
Definition: minimap.h:115
Render Pipeline provides a flexible way to execute rendering steps in the engine.
Definition: pipeline.h:357
Represents a render target (screen or framebuffer)
Definition: pipeline.h:86
Definition: core.h:33
ShadowRenderer * get_shadow_renderer()
Definition: core.h:61
RenderingCore & operator=(RenderingCore &&)=delete
RenderingCore(RenderingCore &&)=delete
v2u32 virtual_size
Definition: core.h:43
virtual ~RenderingCore()
Definition: core.cpp:33
RenderingCore(const RenderingCore &)=delete
Hud * hud
Definition: core.h:37
v2u32 getVirtualSize() const
Definition: core.cpp:54
IrrlichtDevice * device
Definition: core.h:35
void draw(video::SColor _skycolor, bool _show_hud, bool _draw_wield_tool, bool _draw_crosshair)
Definition: core.cpp:39
RenderPipeline * pipeline
Definition: core.h:40
v2f virtual_size_scale
Definition: core.h:42
ShadowRenderer * shadow_renderer
Definition: core.h:38
RenderingCore & operator=(const RenderingCore &)=delete
Client * client
Definition: core.h:36
Definition: dynamicshadowsrender.h:53
core::vector2d< f32 > v2f
Definition: irr_v2d.h:26
core::vector2d< u32 > v2u32
Definition: irr_v2d.h:29
Definition: activeobjectmgr.cpp:26