summaryrefslogtreecommitdiff
path: root/src/porting.h
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-04-05 14:12:36 +0200
committersapier <Sapier at GMX dot net>2014-04-27 21:53:13 +0200
commit1838a3fd696782b1733a435bbb25accf3e40d1f3 (patch)
tree9edee41b26d5307b1d2e4626e65bb372a3d8cab7 /src/porting.h
parent8d315347100f1d261bb496b6c73f8cab5d2b7a41 (diff)
downloadminetest-1838a3fd696782b1733a435bbb25accf3e40d1f3.tar.gz
minetest-1838a3fd696782b1733a435bbb25accf3e40d1f3.tar.bz2
minetest-1838a3fd696782b1733a435bbb25accf3e40d1f3.zip
Add support for dpi based HUD scaling
Add support for (configurable) multiline hotbar Improved screensize handling Add userdefined gui scale by BlockMen
Diffstat (limited to 'src/porting.h')
-rw-r--r--src/porting.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/porting.h b/src/porting.h
index f19ff3a07..90bfa2502 100644
--- a/src/porting.h
+++ b/src/porting.h
@@ -28,12 +28,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
- #define _WIN32_WINNT 0x0501 // We need to do this before any other headers
+ #define _WIN32_WINNT 0x0501 // We need to do this before any other headers
// because those might include sdkddkver.h which defines _WIN32_WINNT if not already set
#endif
#include <string>
+#include "irrlicht.h"
#include "irrlichttypes.h" // u32
+#include "irrlichttypes_extrabloated.h"
#include "debug.h"
#include "constants.h"
#include "gettime.h"
@@ -178,6 +180,8 @@ bool threadSetPriority(threadid_t tid, int prio);
*/
std::string get_sysinfo();
+void initIrrlicht(irr::IrrlichtDevice * );
+
/*
Resolution is 10-20ms.
Remember to check for overflows.
@@ -318,6 +322,13 @@ inline u32 getTime(TimePrecision prec)
inline void setThreadName(const char* name) {}
#endif
+#ifndef SERVER
+float getDisplayDensity();
+
+v2u32 getDisplaySize();
+v2u32 getWindowSize();
+#endif
+
} // namespace porting
#endif // PORTING_HEADER