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:
parent
fbbdae93ee
commit
39f4d26177
23 changed files with 345 additions and 35 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue