···858858 *
859859 */
860860861861-/*!
862862- * View type to be rendered to by the compositor.
863863- */
864864-enum xrt_view_type
865865-{
866866- XRT_VIEW_TYPE_MONO = 1,
867867- XRT_VIEW_TYPE_STEREO = 2,
868868-};
869869-870861enum xrt_compositor_frame_point
871862{
872863 XRT_COMPOSITOR_FRAME_POINT_WOKE, //!< The client woke up after waiting.
+9
src/xrt/include/xrt/xrt_defines.h
···21192119};
2120212021212121/*!
21222122+ * View type to be rendered to by the compositor.
21232123+ */
21242124+enum xrt_view_type
21252125+{
21262126+ XRT_VIEW_TYPE_MONO = 1,
21272127+ XRT_VIEW_TYPE_STEREO = 2,
21282128+};
21292129+21302130+/*!
21222131 * Domain type.
21232132 * Use for performance level setting
21242133 * Which hardware should be boost/decrease
+12-2
src/xrt/include/xrt/xrt_device.h
···550550 * input.
551551 * @param[in] at_timestamp_ns This is when the caller wants the poses and FOVs to be from.
552552 * @param[in] view_count Number of views.
553553+ * @param[in] view_type Type of view configuration (mono or stereo).
553554 * @param[out] out_head_relation
554555 * The head pose in the device tracking space.
555556 * Combine with @p out_poses to get the views in
···567568 xrt_result_t (*get_view_poses)(struct xrt_device *xdev,
568569 const struct xrt_vec3 *default_eye_relation,
569570 int64_t at_timestamp_ns,
571571+ enum xrt_view_type view_type,
570572 uint32_t view_count,
571573 struct xrt_space_relation *out_head_relation,
572574 struct xrt_fov *out_fovs,
···918920xrt_device_get_view_poses(struct xrt_device *xdev,
919921 const struct xrt_vec3 *default_eye_relation,
920922 int64_t at_timestamp_ns,
923923+ enum xrt_view_type view_type,
921924 uint32_t view_count,
922925 struct xrt_space_relation *out_head_relation,
923926 struct xrt_fov *out_fovs,
924927 struct xrt_pose *out_poses)
925928{
926926- return xdev->get_view_poses(xdev, default_eye_relation, at_timestamp_ns, view_count, out_head_relation,
927927- out_fovs, out_poses);
929929+ return xdev->get_view_poses( //
930930+ xdev, //
931931+ default_eye_relation, //
932932+ at_timestamp_ns, //
933933+ view_type, //
934934+ view_count, //
935935+ out_head_relation, //
936936+ out_fovs, //
937937+ out_poses); //
928938}
929939930940/*!