Add warning when disabling secure.enable_security (#9943)
[oweals/minetest.git] / src / client / renderingengine.h
index ac6b6926c5b694f4724a3471c56bf2f4a0a1ede0..34cc606300e098fc90c80b1430466c718c4d2aeb 100644 (file)
@@ -51,8 +51,8 @@ public:
        static float getDisplayDensity();
        static v2u32 getDisplaySize();
 
-       static void setXorgClassHint(const video::SExposedVideoData &video_data,
-                       const std::string &name);
+       bool setupTopLevelWindow(const std::string &name);
+       void setupTopLevelXorgWindow(const std::string &name);
        bool setWindowIcon();
        bool setXorgWindowIconFromPath(const std::string &icon_file);
        static bool print_video_modes();
@@ -110,6 +110,12 @@ public:
                                text, guienv, tsrc, dtime, percent, clouds);
        }
 
+       inline static void draw_menu_scene(
+                       gui::IGUIEnvironment *guienv, float dtime, bool clouds)
+       {
+               s_singleton->_draw_menu_scene(guienv, dtime, clouds);
+       }
+
        inline static void draw_scene(video::SColor skycolor, bool show_hud,
                        bool show_minimap, bool draw_wield_tool, bool draw_crosshair)
        {
@@ -138,6 +144,9 @@ private:
                        ITextureSource *tsrc, float dtime = 0, int percent = 0,
                        bool clouds = true);
 
+       void _draw_menu_scene(gui::IGUIEnvironment *guienv, float dtime = 0,
+                       bool clouds = true);
+
        void _draw_scene(video::SColor skycolor, bool show_hud, bool show_minimap,
                        bool draw_wield_tool, bool draw_crosshair);