Monado OpenXR Runtime
|
Common struct holding state for the GUI interface. More...
#include <gui/gui_sdl2.h>
Public Member Functions | |
int | gui_sdl2_init (struct sdl2_program *p) |
Init SDL2, create and show a window and bring up any other structs needed. More... | |
void | gui_sdl2_imgui_loop (struct sdl2_program *p) |
Loop until user requests quit, and show Imgui interface. More... | |
void | gui_sdl2_loop (struct sdl2_program *p) |
Loop until quit signal has been received. More... | |
void | gui_sdl2_quit (struct sdl2_program *p) |
Destroy all SDL things and quit SDL. More... | |
Data Fields | |
struct gui_program | base |
bool | sdl_initialized |
SDL_Window * | win |
SDL_GLContext | ctx |
char | layout_file [1024] |
Data Fields inherited from gui_program | |
bool | stopped |
struct gui_scene_manager * | gsm |
struct xrt_system * | xsys |
struct xrt_system_devices * | xsysd |
struct xrt_space_overseer * | xso |
struct xrt_instance * | instance |
struct xrt_prober * | xp |
struct gui_ogl_texture * | texs [256] |
size_t | num_texs |
Common struct holding state for the GUI interface.
void gui_sdl2_imgui_loop | ( | struct sdl2_program * | p | ) |
Loop until user requests quit, and show Imgui interface.
int gui_sdl2_init | ( | struct sdl2_program * | p | ) |
Init SDL2, create and show a window and bring up any other structs needed.
void gui_sdl2_loop | ( | struct sdl2_program * | p | ) |
Loop until quit signal has been received.
void gui_sdl2_quit | ( | struct sdl2_program * | p | ) |
Destroy all SDL things and quit SDL.