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
23 changed files with 345 additions and 35 deletions

View File

@@ -67,6 +67,12 @@ class RenderingEngine
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);