From 5ac74b20bfe5842edf404cafd7f82bc8cd1fcb0b Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Sun, 3 May 2026 08:13:19 +1200 Subject: Add (unsafe) functions to detach/reattach GL context from a SaffronWindow* --- include/saffron_api.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/saffron_api.h b/include/saffron_api.h index 99b4988..5a8935e 100644 --- a/include/saffron_api.h +++ b/include/saffron_api.h @@ -47,4 +47,7 @@ void saffron_hook_sdl_all_events(SaffronWindow* window, bool (*callback)(SDL_Eve SDL_GLContext saffron_window_get_gl_context(SaffronWindow* window); +void saffron_window_detach_gl_context(SaffronWindow* window); +void saffron_window_reattach_gl_context(SaffronWindow* window); + #endif -- cgit v1.2.3