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... | |
Public Member Functions inherited from gui_program | |
int | gui_prober_init (struct gui_program *p) |
Initialize the prober and open all devices found. More... | |
int | gui_prober_select (struct gui_program *p) |
Create devices. More... | |
void | gui_prober_update (struct gui_program *p) |
Update all devices. More... | |
void | gui_prober_teardown (struct gui_program *p) |
Destroy all opened devices and destroy the prober. More... | |
void | gui_scene_push_front (struct gui_program *p, struct gui_scene *me) |
Push the scene to the top of the lists. More... | |
void | gui_scene_delete_me (struct gui_program *p, struct gui_scene *me) |
Put a scene on the delete list, also removes it from any other list. More... | |
void | gui_scene_manager_render (struct gui_program *p) |
Render the scenes. More... | |
void | gui_scene_manager_init (struct gui_program *p) |
Initialize the scene manager. More... | |
void | gui_scene_manager_destroy (struct gui_program *p) |
Destroy the scene manager. More... | |
void | gui_scene_main_menu (struct gui_program *p) |
Shows the main menu. More... | |
void | gui_scene_select_video_calibrate (struct gui_program *p) |
Shows a UI that lets you select a video device and mode for calibration. More... | |
void | gui_scene_tracking_overrides (struct gui_program *p) |
Shows a UI that lets you set up tracking overrides. More... | |
void | gui_scene_debug (struct gui_program *p) |
Regular debug UI. More... | |
void | gui_scene_hand_tracking_demo (struct gui_program *p) |
Small hand-tracking demo. More... | |
void | gui_scene_record_euroc (struct gui_program *p) |
EuRoC recorder for DepthAI cameras. More... | |
void | gui_scene_record (struct gui_program *p, const char *camera) |
Create a recording view scene. More... | |
void | gui_scene_remote (struct gui_program *p, const char *address) |
Remote control debugging UI. More... | |
void | gui_scene_calibrate (struct gui_program *p, struct xrt_frame_context *xfctx, struct xrt_fs *xfs, struct xrt_settings_tracking *s) |
Given the frameserver runs the calibration code on it. 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.