aboutsummaryrefslogtreecommitdiff
path: root/include/saffron_api.h
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-05-03 08:13:19 +1200
committerArslaan Pathan <[email protected]>2026-05-03 08:13:19 +1200
commit5ac74b20bfe5842edf404cafd7f82bc8cd1fcb0b (patch)
treebc6ad50abb2eb8ba034152b9e0314b63c73adc4d /include/saffron_api.h
parentb1f6b4711cb5473adaa8123c8a3dd1cc954a8c31 (diff)
downloadsaffron-5ac74b20bfe5842edf404cafd7f82bc8cd1fcb0b.tar.xz
saffron-5ac74b20bfe5842edf404cafd7f82bc8cd1fcb0b.zip
Add (unsafe) functions to detach/reattach GL context from a SaffronWindow*HEAD0.0.1main
Diffstat (limited to 'include/saffron_api.h')
-rw-r--r--include/saffron_api.h3
1 files changed, 3 insertions, 0 deletions
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