Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Monado
Monado
Commits
9d1353c6
Commit
9d1353c6
authored
Sep 02, 2019
by
Jakob Bornecrantz
Committed by
Jakob Bornecrantz
Sep 15, 2019
Browse files
t/gui: Connect it all together
parent
a507aee9
Pipeline
#63779
passed with stages
in 1 minute and 5 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/xrt/targets/gui/gui_main.c
View file @
9d1353c6
...
...
@@ -7,6 +7,7 @@
* @ingroup gui
*/
#include
"util/u_var.h"
#include
"gui_common.h"
...
...
@@ -16,14 +17,34 @@ main(int argc, char **argv)
struct
program
p
=
{
0
};
int
ret
;
// Need to do this as early as possible.
u_var_force_on
();
ret
=
gui_sdl2_init
(
&
p
);
if
(
ret
!=
0
)
{
gui_sdl2_quit
(
&
p
);
return
ret
;
}
gui_sdl2_loop
(
&
p
);
// To manage the scenes.
gui_scene_manager_init
(
&
p
);
// Start all of the devices.
gui_prober_init
(
&
p
);
// First scene to start with.
gui_scene_select_video
(
&
p
);
// Main loop.
gui_imgui_loop
(
&
p
);
// Clean up after us.
gui_prober_teardown
(
&
p
);
// All scenes should be destroyed by now.
gui_scene_manager_destroy
(
&
p
);
// Final close.
gui_sdl2_quit
(
&
p
);
return
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment