diff options
| author | Arslaan Pathan <[email protected]> | 2026-05-02 22:11:23 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-05-02 22:11:23 +1200 |
| commit | b1f6b4711cb5473adaa8123c8a3dd1cc954a8c31 (patch) | |
| tree | f448a1c8c3a656e7b07ea9feaa0a6070f9f904ee /include/saffron_api.h | |
| parent | 5e43ce6764ed702bfb8fb9719051d42f1e841e34 (diff) | |
| download | saffron-b1f6b4711cb5473adaa8123c8a3dd1cc954a8c31.tar.xz saffron-b1f6b4711cb5473adaa8123c8a3dd1cc954a8c31.zip | |
GL context things
Diffstat (limited to 'include/saffron_api.h')
| -rw-r--r-- | include/saffron_api.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/saffron_api.h b/include/saffron_api.h index 964eaa9..99b4988 100644 --- a/include/saffron_api.h +++ b/include/saffron_api.h @@ -7,8 +7,11 @@ #include "saffron_text.h" #include "saffron_button.h" #include <SDL3/SDL_render.h> +#include <SDL3/SDL_video.h> #include <SDL3_ttf/SDL_ttf.h> #include <SDL3/SDL_pixels.h> +#include <SDL3/SDL_egl.h> +#include <SDL3/SDL_opengles2.h> bool saffron_init(void); void saffron_quit(void); @@ -42,4 +45,6 @@ void saffron_widget_set_theme(SaffronWidget* widget, SaffronTheme* theme); */ void saffron_hook_sdl_all_events(SaffronWindow* window, bool (*callback)(SDL_Event* event), int priority); +SDL_GLContext saffron_window_get_gl_context(SaffronWindow* window); + #endif |
