mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Refactor video driver name retrieval (#11413)
Co-authored-by: hecktest <>
This commit is contained in:
parent
29522017a3
commit
1d25d1f7ad
3 changed files with 16 additions and 27 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue