diff options
author | hecks <42101236+hecktest@users.noreply.github.com> | 2021-07-11 09:50:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-11 09:50:34 +0200 |
commit | 1d25d1f7ad35f739e8a64c2bdb44105998aed19b (patch) | |
tree | 34af48bb94a2e464e6c7c775b353f64777bd650a /src/client/renderingengine.h | |
parent | 29522017a3c06f16a2fe2ef484ed3088b42748ea (diff) | |
download | hax-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.h | 7 |
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(); |