Monado OpenXR Runtime
Data Structures | Macros | Functions
gui_common.h File Reference

Common file for the Monado GUI program. More...

#include "xrt/xrt_compiler.h"
Include dependency graph for gui_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gui_program
 A gui program. More...
 
struct  gui_scene
 A single currently running scene. More...
 
struct  gui_ogl_texture
 A OpenGL texture. More...
 

Macros

#define NUM_XDEVS   8
 

Functions

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...
 
struct gui_ogl_texturegui_ogl_sink_create (const char *name, struct xrt_frame_context *xfctx, struct xrt_frame_sink **out_sink)
 Create a sink that will turn frames into OpenGL textures, since the frame can come from another thread gui_ogl_sink_update needs to be called. More...
 
void gui_ogl_sink_update (struct gui_ogl_texture *)
 Update the texture to the latest received frame. 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_debug (struct gui_program *p)
 Regular debug 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...
 

Detailed Description

Common file for the Monado GUI program.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Macro Definition Documentation

◆ NUM_XDEVS

#define NUM_XDEVS   8