blob: 6da1b3f2a15195bdbc9038be9646b7941aa83c4a (
plain)
ofs | hex dump | ascii |
---|
0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 03 5a 00 00 02 2a 08 06 00 00 00 3d f7 3b | .PNG........IHDR...Z...*.....=.; |
0020 | eb 00 00 00 04 73 42 49 54 08 08 08 08 7c 08 64 88 00 00 20 00 49 44 41 54 78 9c ec bd 7b 9c 1c | .....sBIT....|.d.....IDATx...{.. |
0040 | d5 75 ef fb ab 9e ee 19 cd 4b f3 94 34 e8 05 c6 23 21 81 40 60 4b 48 33 20 b0 79 e5 1a 5f 12 70 | .u.......K..4...#!.@`KH3..y.._.p |
0060 | 3e 81 f8 1c df e3 98 63 e3 1b 27 ce e5 9e 1c 9f 13 63 63 b0 1c 5b 71 6c 64 5d 13 e3 f8 c8 c8 56 | >......c..'......cc..[qld].....V |
0080 | 9e f6 49 0e 56 f0 eb c6 18 19 83 9e a0 80 84 30 1a 21 41 40 12 30 42 8f 99 91 66 a6 e7 d5 5d e7 | ..I.V..........0.!A@.0B...f...]. |
00a0 | 8f 9e ea a9 ae ae da 8f da bb 5e dd eb cb a7 50 4f d7 ae bd 57 55 57 77 ef 5f af b5 d7 32 f6 ef | ..........^....PO...WUWw._...2.. |
00c0 | dd 6a 42 91 eb 5f fe 7f 98 fb 87 5e 1b 64 ee 37 32 06 73 bf 69 2a 9b 48 88 92 e7 37 31 5a d9 af | .jB.._.....^.d.72.s.i*.H...71Z.. |
00e0 | d7 b3 57 6f 66 ee cf a4 33 7c 33 f2 6c 43 ea eb eb b9 7d a8 92 cb e7 82 1f 23 c7 3e cf b3 67 cf | ..Wof...3|3.lC....}......#.>..g. |
/*
Minetest
Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
Copyright (C) 2017 numzero, Lobachevskiy Vitaliy <numzer0@yandex.ru>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#pragma once
#include "irrlichttypes_extrabloated.h"
class ShadowRenderer;
class Camera;
class Client;
class Hud;
class Minimap;
class RenderingCore
{
protected:
v2u32 screensize;
v2u32 virtual_size;
video::SColor skycolor;
bool show_hud;
bool show_minimap;
bool draw_wield_tool;
bool draw_crosshair;
IrrlichtDevice *device;
video::IVideoDriver *driver;
scene::ISceneManager *smgr;
gui::IGUIEnvironment *guienv;
Client *client;
Camera *camera;
Minimap *mapper;
Hud *hud;
ShadowRenderer *shadow_renderer;
void updateScreenSize();
virtual void initTextures() {}
virtual void clearTextures() {}
virtual void beforeDraw() {}
virtual void drawAll() = 0;
void draw3D();
void drawHUD();
void drawPostFx();
public:
RenderingCore(IrrlichtDevice *_device, Client *_client, Hud *_hud);
RenderingCore(const RenderingCore &) = delete;
RenderingCore(RenderingCore &&) = delete;
virtual ~RenderingCore();
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);
inline v2u32 getVirtualSize() const { return virtual_size; }
ShadowRenderer *get_shadow_renderer() { return shadow_renderer; };
};