Sample HMD device, use as a starting point to make your own device driver.
More...
|
#define | HMD_TRACE(hmd, ...) U_LOG_XDEV_IFL_T(&hmd->base, hmd->log_level, __VA_ARGS__) |
|
#define | HMD_DEBUG(hmd, ...) U_LOG_XDEV_IFL_D(&hmd->base, hmd->log_level, __VA_ARGS__) |
|
#define | HMD_INFO(hmd, ...) U_LOG_XDEV_IFL_I(&hmd->base, hmd->log_level, __VA_ARGS__) |
|
#define | HMD_ERROR(hmd, ...) U_LOG_XDEV_IFL_E(&hmd->base, hmd->log_level, __VA_ARGS__) |
|
|
static struct sample_hmd * | sample_hmd (struct xrt_device *xdev) |
| Casting helper function. More...
|
|
static void | sample_hmd_destroy (struct xrt_device *xdev) |
|
static xrt_result_t | sample_hmd_update_inputs (struct xrt_device *xdev) |
|
static xrt_result_t | sample_hmd_get_tracked_pose (struct xrt_device *xdev, enum xrt_input_name name, int64_t at_timestamp_ns, struct xrt_space_relation *out_relation) |
|
static void | sample_hmd_get_view_poses (struct xrt_device *xdev, const struct xrt_vec3 *default_eye_relation, int64_t at_timestamp_ns, uint32_t view_count, struct xrt_space_relation *out_head_relation, struct xrt_fov *out_fovs, struct xrt_pose *out_poses) |
|
static xrt_result_t | sample_hmd_get_visibility_mask (struct xrt_device *xdev, enum xrt_visibility_mask_type type, uint32_t view_index, struct xrt_visibility_mask **out_mask) |
|
struct xrt_device * | sample_hmd_create (void) |
| Create a Sample HMD. More...
|
|
◆ sample_hmd()