Monado OpenXR Runtime
target_builder_steamvr.c File Reference

Builder for SteamVR proprietary driver wrapper. More...

#include "util/u_builders.h"
#include "xrt/xrt_config_drivers.h"
#include <assert.h>
#include <stdbool.h>
#include "tracking/t_tracking.h"
#include "xrt/xrt_device.h"
#include "xrt/xrt_prober.h"
#include "util/u_debug.h"
#include "util/u_system_helpers.h"
#include "vive/vive_builder.h"
#include "target_builder_interface.h"
#include "steamvr_lh/steamvr_lh_interface.h"
#include "xrt/xrt_results.h"
#include "xrt/xrt_space.h"
#include "util/u_space_overseer.h"
Include dependency graph for target_builder_steamvr.c:

Data Structures

struct  steamvr_builder
 

Macros

#define SVR_TRACE(...)   U_LOG_IFL_T(debug_get_log_option_svr_log(), __VA_ARGS__)
 
#define SVR_DEBUG(...)   U_LOG_IFL_D(debug_get_log_option_svr_log(), __VA_ARGS__)
 
#define SVR_INFO(...)   U_LOG_IFL_I(debug_get_log_option_svr_log(), __VA_ARGS__)
 
#define SVR_WARN(...)   U_LOG_IFL_W(debug_get_log_option_svr_log(), __VA_ARGS__)
 
#define SVR_ERROR(...)   U_LOG_IFL_E(debug_get_log_option_svr_log(), __VA_ARGS__)
 
#define SVR_ASSERT(predicate, ...)
 
#define SVR_ASSERT_(predicate)   SVR_ASSERT(predicate, "Assertion failed " #predicate)
 

Functions

static xrt_result_t steamvr_estimate_system (struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp, struct xrt_builder_estimate *estimate)
 
static void steamvr_destroy (struct xrt_builder *xb)
 
static xrt_result_t steamvr_open_system (struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp, struct xrt_session_event_sink *broadcast, struct xrt_system_devices **out_xsysd, struct xrt_space_overseer **out_xso)
 
struct xrt_buildert_builder_steamvr_create (void)
 Builder for SteamVR proprietary wrapper (vive, index, tundra trackers, etc.) More...
 

Variables

static const char * driver_list []
 

Detailed Description

Builder for SteamVR proprietary driver wrapper.

Author
BabbleBones Babbl.nosp@m.eBon.nosp@m.es@pr.nosp@m.oton.nosp@m.mail..nosp@m.com
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Macro Definition Documentation

◆ SVR_ASSERT

#define SVR_ASSERT (   predicate,
  ... 
)
Value:
do { \
bool p = predicate; \
if (!p) { \
U_LOG(U_LOGGING_ERROR, __VA_ARGS__); \
assert(false && "SVR_ASSERT failed: " #predicate); \
exit(EXIT_FAILURE); \
} \
} while (false);
@ U_LOGGING_ERROR
Error messages: indicating a problem.
Definition: u_logging.h:48

Function Documentation

◆ t_builder_steamvr_create()

struct xrt_builder * t_builder_steamvr_create ( void  )

Builder for SteamVR proprietary wrapper (vive, index, tundra trackers, etc.)

References xrt_builder::estimate_system, and U_TYPED_CALLOC.

Variable Documentation

◆ driver_list

const char* driver_list[]
static
Initial value:
= {
"steamvr_lh",
}