19#include <IVideoDriver.h>
22#error Do not include in server builds
40#define FOG_RANGE_ALL (100000 * BS)
49 void limit(IrrlichtDevice *device, f32 *dtime,
bool assume_paused =
false);
124 return m_device->getGUIEnvironment();
131 float dtime = 0,
int percent = 0,
float *indef_pos =
nullptr);
133 void draw_scene(video::SColor skycolor,
bool show_hud,
134 bool draw_wield_tool,
bool draw_crosshair);
154 const irr::core::dimension2d<u32> initial_screen_size,
155 const bool initial_window_maximized);
167 std::unique_ptr<RenderingCore>
core;
Definition renderingengine.h:59
virtual IShaderConstantSetter * create()
Definition renderingengine.cpp:105
FogShaderConstantSetterFactory()
Definition renderingengine.h:61
Definition texturesource.h:36
Definition localplayer.h:49
Definition inputhandler.h:123
PointerType getLastPointerType()
Definition inputhandler.h:191
ShadowRenderer * get_shadow_renderer()
Definition core.h:51
Definition renderingengine.h:68
void draw_load_screen(const std::wstring &text, gui::IGUIEnvironment *guienv, ITextureSource *tsrc, float dtime=0, int percent=0, float *indef_pos=nullptr)
Definition renderingengine.cpp:294
static void autosaveScreensizeAndCo(const irr::core::dimension2d< u32 > initial_screen_size, const bool initial_window_maximized)
Definition renderingengine.cpp:432
static ShadowRenderer * get_shadow_renderer()
Definition renderingengine.h:145
irr::IrrlichtDevice * m_device
Definition renderingengine.h:168
static RenderingEngine * s_singleton
Definition renderingengine.h:171
bool setWindowIcon()
Definition renderingengine.cpp:277
~RenderingEngine()
Definition renderingengine.cpp:221
static PointerType getLastPointerType()
Definition renderingengine.h:157
void initialize(Client *client, Hud *hud)
Definition renderingengine.cpp:391
RenderingEngine(MyEventReceiver *eventReceiver)
Definition renderingengine.cpp:160
void cleanupMeshCache()
Definition renderingengine.cpp:266
static std::vector< irr::video::E_DRIVER_TYPE > getSupportedVideoDrivers()
Definition renderingengine.cpp:371
static video::IVideoDriver * get_video_driver()
Definition renderingengine.h:105
scene::ISceneManager * get_scene_manager()
Definition renderingengine.h:111
static float getDisplayDensity()
Definition renderingengine.cpp:419
static const VideoDriverInfo & getVideoDriverInfo(irr::video::E_DRIVER_TYPE type)
Definition renderingengine.cpp:408
static void settingChangedCallback(const std::string &name, void *data)
Definition renderingengine.cpp:233
video::IVideoDriver * getVideoDriver()
Definition renderingengine.h:77
static const video::SColor MENU_SKY_COLOR
Definition renderingengine.h:70
irr::video::IVideoDriver * driver
Definition renderingengine.h:169
io::IFileSystem * get_filesystem()
Definition renderingengine.h:100
std::unique_ptr< RenderingCore > core
Definition renderingengine.h:167
void removeMesh(const scene::IMesh *mesh)
Definition renderingengine.cpp:261
void draw_scene(video::SColor skycolor, bool show_hud, bool draw_wield_tool, bool draw_crosshair)
Definition renderingengine.cpp:402
static irr::IrrlichtDevice * get_raw_device()
Definition renderingengine.h:116
gui::IGUIEnvironment * get_gui_env()
Definition renderingengine.h:122
void setResizable(bool resize)
Definition renderingengine.cpp:256
void finalize()
Definition renderingengine.cpp:397
bool run()
Definition renderingengine.h:139
v2u32 _getWindowSize() const
Definition renderingengine.cpp:249
bool setupTopLevelWindow()
Definition renderingengine.cpp:272
static v2u32 getWindowSize()
This takes 3d_mode into account - side-by-side will return a halved horizontal size.
Definition renderingengine.h:94
MyEventReceiver * m_receiver
Definition renderingengine.h:170
Definition dynamicshadowsrender.h:39
gui::IGUIEnvironment * guienv
Definition clientlauncher.cpp:34
#define sanity_check(expr)
Definition debug.h:56
core::vector2d< u32 > v2u32
Definition irr_v2d.h:14
Definition activeobjectmgr.cpp:11
Definition renderingengine.h:44
void reset()
Definition renderingengine.cpp:32
u64 busy_time
Definition renderingengine.h:54
FpsControl()
Definition renderingengine.h:45
void limit(IrrlichtDevice *device, f32 *dtime, bool assume_paused=false)
Definition renderingengine.cpp:37
u64 sleep_time
Definition renderingengine.h:54
u32 getBusyMs() const
Definition renderingengine.h:51
u64 last_time
Definition renderingengine.h:54
Definition renderingengine.h:25
std::string friendly_name
Definition renderingengine.h:27
std::string name
Definition renderingengine.h:26