The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

t/gui: Connect it all together

authored by

Jakob Bornecrantz and committed by
Jakob Bornecrantz
9d1353c6 a507aee9

+22 -1
+22 -1
src/xrt/targets/gui/gui_main.c
··· 7 7 * @ingroup gui 8 8 */ 9 9 10 + #include "util/u_var.h" 10 11 #include "gui_common.h" 11 12 12 13 ··· 16 17 struct program p = {0}; 17 18 int ret; 18 19 20 + // Need to do this as early as possible. 21 + u_var_force_on(); 22 + 19 23 ret = gui_sdl2_init(&p); 20 24 if (ret != 0) { 21 25 gui_sdl2_quit(&p); 22 26 return ret; 23 27 } 24 28 25 - gui_sdl2_loop(&p); 29 + // To manage the scenes. 30 + gui_scene_manager_init(&p); 31 + 32 + // Start all of the devices. 33 + gui_prober_init(&p); 34 + 35 + // First scene to start with. 36 + gui_scene_select_video(&p); 37 + 38 + // Main loop. 39 + gui_imgui_loop(&p); 40 + 41 + // Clean up after us. 42 + gui_prober_teardown(&p); 43 + 44 + // All scenes should be destroyed by now. 45 + gui_scene_manager_destroy(&p); 26 46 47 + // Final close. 27 48 gui_sdl2_quit(&p); 28 49 29 50 return 0;