Monado OpenXR Runtime
sdl_instance.c File Reference

Shared default implementation of the instance with compositor. More...

#include "xrt/xrt_system.h"
#include "xrt/xrt_instance.h"
#include "xrt/xrt_config_drivers.h"
#include "util/u_misc.h"
#include "util/u_system.h"
#include "util/u_builders.h"
#include "util/u_trace_marker.h"
#include "sdl_internal.h"
Include dependency graph for sdl_instance.c:

Functions

static xrt_result_t sdl_system_devices_get_roles (struct xrt_system_devices *xsysd, struct xrt_system_roles *out_roles)
 
static void sdl_system_devices_destroy (struct xrt_system_devices *xsysd)
 
static xrt_result_t sdl_instance_get_prober (struct xrt_instance *xinst, struct xrt_prober **out_xp)
 
static xrt_result_t sdl_instance_create_system (struct xrt_instance *xinst, struct xrt_system **out_xsys, struct xrt_system_devices **out_xsysd, struct xrt_space_overseer **out_xso, struct xrt_system_compositor **out_xsysc)
 
static void sdl_instance_destroy (struct xrt_instance *xinst)
 
void sdl_system_init (struct sdl_program *sp)
 Init the xrt_system (and u_system) struct. More...
 
void sdl_system_devices_init (struct sdl_program *sp)
 Init the xrt_system_devices sub struct. More...
 
void sdl_instance_init (struct sdl_program *sp)
 Init the xrt_instance sub struct. More...
 
xrt_result_t xrt_instance_create (struct xrt_instance_info *ii, struct xrt_instance **out_xinst)
 

Detailed Description

Shared default implementation of the instance with compositor.

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

Function Documentation

◆ sdl_instance_init()

void sdl_instance_init ( struct sdl_program sp)

Init the xrt_instance sub struct.

References xrt_instance::create_system, and sdl_program::xinst_base.

◆ sdl_system_devices_init()

void sdl_system_devices_init ( struct sdl_program sp)

◆ sdl_system_init()

void sdl_system_init ( struct sdl_program sp)

Init the xrt_system (and u_system) struct.

References u_system::u_system_create(), and sdl_program::usys.