aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window/Window.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/window/Window.cpp b/src/window/Window.cpp
index 64ee9fe..512991a 100644
--- a/src/window/Window.cpp
+++ b/src/window/Window.cpp
@@ -93,6 +93,22 @@ namespace mgl {
mgl_window_set_framerate_limit(&window, fps);
}
+ void Window::set_vsync_enabled(bool enabled) {
+ mgl_window_set_vsync_enabled(&window, enabled);
+ }
+
+ bool Window::is_vsync_enabled() const {
+ return mgl_window_is_vsync_enabled(&window);
+ }
+
+ void Window::set_fullscreen(bool fullscreen) {
+ mgl_window_set_fullscreen(&window, fullscreen);
+ }
+
+ bool Window::is_fullscreen() const {
+ return mgl_window_is_fullscreen(&window);
+ }
+
void Window::set_key_repeat_enabled(bool enabled) {
mgl_window_set_key_repeat_enabled(&window, enabled);
}