73 #define U_DEVICE_ALLOCATE(type, flags, num_inputs, num_outputs) \ 74 ((type *)u_device_allocate(flags, sizeof(type), num_inputs, \ const struct xrt_matrix_2x2 u_device_rotation_180
Definition: u_device.c:50
const struct xrt_matrix_2x2 u_device_rotation_right
Definition: u_device.c:25
struct u_device_simple_info::@14 display
float w_meters
Definition: u_device.h:40
Definition: u_device.h:29
Header defining a xrt HMD device.
bool u_device_setup_split_side_by_side(struct xrt_device *xdev, const struct u_device_simple_info *info)
Setup the device information given a very simple info struct.
Definition: u_device.c:142
Definition: u_device.h:34
uint32_t w_pixels
Definition: u_device.h:38
const struct xrt_matrix_2x2 u_device_rotation_left
Definition: u_device.c:34
Definition: u_device.h:30
struct u_device_simple_info::@15 views[2]
float lens_horizontal_separation_meters
Definition: u_device.h:44
const struct xrt_matrix_2x2 u_device_rotation_ident
Definition: u_device.c:42
Header defining the tracking system integration in Monado.
void u_device_dump_config(struct xrt_device *xdev, const char *prefix, const char *prod)
Dump the device config to stderr.
Definition: u_device.c:86
float fov
Definition: u_device.h:49
void u_device_free(struct xrt_device *xdev)
Helper function to free a device and any data hanging of it.
Definition: u_device.c:283
float lens_vertical_position_meters
Definition: u_device.h:45
u_device_alloc_flags
Definition: u_device.h:26
void * u_device_allocate(enum u_device_alloc_flags flags, size_t size, size_t num_inputs, size_t num_outputs)
Helper function to allocate a device plus inputs in the same allocation placed after the device in me...
Definition: u_device.c:221
Header holding common defines.
uint32_t h_pixels
Definition: u_device.h:39
float h_meters
Definition: u_device.h:41
A single HMD or input device.
Definition: xrt_device.h:202
A tightly packed 2x2 matrix of floats.
Definition: xrt_defines.h:255