monado/src/xrt/targets/gui/gui_main.c

31 lines
444 B
C
Raw Normal View History

2019-07-21 14:45:50 +00:00
// Copyright 2019, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
* @brief Main entrypoint for the Monado GUI program.
* @author Jakob Bornecrantz <jakob@collabora.com>
* @ingroup gui
*/
#include "gui_common.h"
int
main(int argc, char **argv)
{
struct program p = {0};
int ret;
ret = gui_sdl2_init(&p);
if (ret != 0) {
gui_sdl2_quit(&p);
return ret;
}
gui_sdl2_loop(&p);
gui_sdl2_quit(&p);
return 0;
}