Monado OpenXR Runtime
sdl2_program Struct Reference

Common struct holding state for the GUI interface. More...

#include <gui/gui_sdl2.h>

Inheritance diagram for sdl2_program:
Collaboration diagram for sdl2_program:

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...
 

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_managergsm
 
struct xrt_systemxsys
 
struct xrt_system_devicesxsysd
 
struct xrt_space_overseerxso
 
struct xrt_instanceinstance
 
struct xrt_proberxp
 
struct gui_ogl_texturetexs [256]
 
size_t num_texs
 

Detailed Description

Common struct holding state for the GUI interface.

Member Function Documentation

◆ gui_sdl2_imgui_loop()

void gui_sdl2_imgui_loop ( struct sdl2_program p)

Loop until user requests quit, and show Imgui interface.

◆ gui_sdl2_init()

int gui_sdl2_init ( struct sdl2_program p)

Init SDL2, create and show a window and bring up any other structs needed.

◆ gui_sdl2_loop()

void gui_sdl2_loop ( struct sdl2_program p)

Loop until quit signal has been received.

◆ gui_sdl2_quit()

void gui_sdl2_quit ( struct sdl2_program p)

Destroy all SDL things and quit SDL.


The documentation for this struct was generated from the following file: