From 45e509ea8d21bf45df09deecc2e5a2f09751667b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 7 Jan 2023 13:37:15 +0100 Subject: Window: add functions to set fullscreen state, vsync state --- include/mglpp/window/Window.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/mglpp/window/Window.hpp b/include/mglpp/window/Window.hpp index b4975b4..2ba61ff 100644 --- a/include/mglpp/window/Window.hpp +++ b/include/mglpp/window/Window.hpp @@ -70,6 +70,10 @@ namespace mgl { void set_title(const char *title); // 0 = no fps limit, or limit fps to vsync if vsync is enabled void set_framerate_limit(unsigned int fps); + void set_vsync_enabled(bool enabled); + bool is_vsync_enabled() const; + void set_fullscreen(bool fullscreen); + bool is_fullscreen() const; void set_key_repeat_enabled(bool enabled); void set_cursor_visible(bool visible); vec2i get_size() const; -- cgit v1.2.3