]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/client/renderingengine.h
Cap damage overlay duration to 1 second (#11871)
[dragonfireclient.git] / src / client / renderingengine.h
index 5299222e27bc4b806514137d721341a859000ffa..6f104bba98e2ee09eb0e8963f0a39082a712752e 100644 (file)
@@ -29,6 +29,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 // include the shadow mapper classes too
 #include "client/shadows/dynamicshadowsrender.h"
 
+struct VideoDriverInfo {
+       std::string name;
+       std::string friendly_name;
+};
 
 class ITextureSource;
 class Camera;
@@ -49,8 +53,7 @@ class RenderingEngine
 
        video::IVideoDriver *getVideoDriver() { return driver; }
 
-       static const char *getVideoDriverName(irr::video::E_DRIVER_TYPE type);
-       static const char *getVideoDriverFriendlyName(irr::video::E_DRIVER_TYPE type);
+       static const VideoDriverInfo &getVideoDriverInfo(irr::video::E_DRIVER_TYPE type);
        static float getDisplayDensity();
        static v2u32 getDisplaySize();