aboutsummaryrefslogtreecommitdiff
path: root/src/client/renderingengine.h
diff options
context:
space:
mode:
authorhecks <42101236+hecktest@users.noreply.github.com>2021-07-11 09:50:34 +0200
committerGitHub <noreply@github.com>2021-07-11 09:50:34 +0200
commit1d25d1f7ad35f739e8a64c2bdb44105998aed19b (patch)
tree34af48bb94a2e464e6c7c775b353f64777bd650a /src/client/renderingengine.h
parent29522017a3c06f16a2fe2ef484ed3088b42748ea (diff)
downloadhax-minetest-server-1d25d1f7ad35f739e8a64c2bdb44105998aed19b.tar.gz
hax-minetest-server-1d25d1f7ad35f739e8a64c2bdb44105998aed19b.zip
Refactor video driver name retrieval (#11413)
Co-authored-by: hecktest <>
Diffstat (limited to 'src/client/renderingengine.h')
-rw-r--r--src/client/renderingengine.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/renderingengine.h b/src/client/renderingengine.h
index 5299222e2..6f104bba9 100644
--- a/src/client/renderingengine.h
+++ b/src/client/renderingengine.h
@@ -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 @@ public:
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();