|
Monado OpenXR Runtime
|
Shared default implementation of the device with compositor. More...
#include "sdl_internal.h"#include "math/m_mathinclude.h"#include "util/u_device.h"#include "util/u_distortion_mesh.h"#include <stdio.h>
Functions | |
| static xrt_result_t | sdl_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 | sdl_hmd_destroy (struct xrt_device *xdev) |
| void | sdl_device_init (struct sdl_program *sp) |
| Init the xrt_device sub struct. | |
Shared default implementation of the device with compositor.
| void sdl_device_init | ( | struct sdl_program * | sp | ) |
Init the xrt_device sub struct.
In sdl_device.c
References xrt_input::active, ARRAY_SIZE, xrt_hmd_parts::blend_modes, xrt_device::destroy, xrt_device::get_tracked_pose, xrt_device::get_view_poses, xrt_device::hmd, sdl_program::hmd, xrt_tracking_origin::initial_offset, xrt_device::input_count, xrt_device::inputs, sdl_program::inputs, xrt_device::name, xrt_tracking_origin::name, xrt_hmd_parts::nominal_frame_interval_ns, sdl_program::origin, xrt_hmd_parts::screens, xrt_device::serial, xrt_device::str, time_s_to_ns(), xrt_device::tracking_origin, xrt_tracking_origin::type, u_device_get_view_poses(), u_device_noop_update_inputs(), u_device_setup_split_side_by_side(), u_distortion_mesh_set_none(), U_LOG_E, xrt_device::update_inputs, sdl_program::xdev_base, XRT_INPUT_GENERIC_HEAD_POSE, xrt_pose::XRT_POSE_IDENTITY, and XRT_TRACKING_TYPE_OTHER.
Referenced by sdl_program_plus_create().