mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Allow toggling fullscreen without restart and add keybind (#14714)
This commit is contained in:
parent
981d67324b
commit
833bb542fc
14 changed files with 120 additions and 15 deletions
|
@ -179,6 +179,11 @@ public:
|
|||
/** \return True if window is fullscreen. */
|
||||
virtual bool isFullscreen() const = 0;
|
||||
|
||||
//! Enables or disables fullscreen mode.
|
||||
/** Only works on SDL.
|
||||
\return True on success. */
|
||||
virtual bool setFullscreen(bool fullscreen) { return false; }
|
||||
|
||||
//! Checks if the window could possibly be visible.
|
||||
/** If this returns false, you should not do any rendering. */
|
||||
virtual bool isWindowVisible() const { return true; };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue