From 6817e821af9d69363466025f17ee367cfaa4550e Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 26 Nov 2023 12:37:59 +0100 Subject: STR 1373: adds vsync control to OpenGL contexts on macOS Windows and X11 to follow, no idea about Wayland. --- FL/Fl_Gl_Window.H | 2 ++ 1 file changed, 2 insertions(+) (limited to 'FL') diff --git a/FL/Fl_Gl_Window.H b/FL/Fl_Gl_Window.H index 65c7a5a9d..67c3c4050 100644 --- a/FL/Fl_Gl_Window.H +++ b/FL/Fl_Gl_Window.H @@ -199,6 +199,8 @@ public: void context(GLContext, int destroy_flag = 0); void make_current(); void swap_buffers(); + void swap_interval(int); + int swap_interval() const; void ortho(); int can_do_overlay(); -- cgit v1.2.3