SDL_GLContext ctx
Definition: gui_sdl2.h:39
void gui_sdl2_quit(struct sdl2_program *p)
Destroy all SDL things and quit SDL.
Definition: gui_sdl2.c:114
void gui_sdl2_loop(struct sdl2_program *p)
Loop until quit signal has been received.
Definition: gui_sdl2.c:37
SDL_Window * win
Definition: gui_sdl2.h:38
Common file for the Monado GUI program.
A gui program.
Definition: gui_common.h:43
struct gui_program base
Definition: gui_sdl2.h:35
Common struct holding state for the GUI interface.
Definition: gui_sdl2.h:33
int gui_sdl2_init(struct sdl2_program *p)
Init SDL2, create and show a window and bring up any other structs needed.
Definition: gui_sdl2.c:56
void gui_sdl2_imgui_loop(struct sdl2_program *p)
Loop until user request quit and show Imgui interface.
Definition: gui_sdl2_imgui.c:47
bool sdl_initialized
Definition: gui_sdl2.h:37