1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add minetest.get_player_window_information() (#12367)

This commit is contained in:
rubenwardy 2023-02-27 22:58:41 +00:00 committed by GitHub
parent fbbdae93ee
commit 39f4d26177
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 345 additions and 35 deletions

View file

@ -67,6 +67,12 @@ public:
void removeMesh(const scene::IMesh* mesh);
/**
* This takes 3d_mode into account - side-by-side will return a
* halved horizontal size.
*
* @return "window" size
*/
static v2u32 getWindowSize()
{
sanity_check(s_singleton);