Monado OpenXR Runtime
|
So much space! More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "math/m_api.h"
#include "util/u_debug.h"
#include "util/u_misc.h"
#include "oxr_objects.h"
#include "oxr_logger.h"
#include "oxr_handle.h"
Functions | |
XrResult | oxr_space_action_create (struct oxr_logger *log, struct oxr_session *sess, uint64_t key, const XrActionSpaceCreateInfo *createInfo, struct oxr_space **out_space) |
XrResult | oxr_space_reference_create (struct oxr_logger *log, struct oxr_session *sess, const XrReferenceSpaceCreateInfo *createInfo, struct oxr_space **out_space) |
XrResult | oxr_space_ref_relation (struct oxr_logger *log, struct oxr_session *sess, XrReferenceSpaceType space, XrReferenceSpaceType baseSpc, XrTime time, struct xrt_space_relation *out_relation) |
This returns only the relation between two spaces without any of the app given relations applied, assumes that both spaces are reference spaces. More... | |
XrResult | oxr_space_action_relation (struct oxr_logger *log, struct oxr_session *sess, struct oxr_space *spc, struct oxr_space *baseSpc, XrTime at_time, struct xrt_space_relation *out_relation) |
This returns only the relation between two spaces without any of the app given relations applied, assumes that only one is a action space. More... | |
XrResult | oxr_space_locate (struct oxr_logger *log, struct oxr_space *spc, struct oxr_space *baseSpc, XrTime time, XrSpaceLocation *location) |
Variables | |
const struct xrt_pose | origin = {{0.0f, 0.0f, 0.0f, 1.0f}, {0.0f, 0.0f, 0.0f}} |
So much space!
XrResult oxr_space_action_relation | ( | struct oxr_logger * | log, |
struct oxr_session * | sess, | ||
struct oxr_space * | spc, | ||
struct oxr_space * | baseSpc, | ||
XrTime | at_time, | ||
struct xrt_space_relation * | out_relation | ||
) |
This returns only the relation between two spaces without any of the app given relations applied, assumes that only one is a action space.
References oxr_space::act_key, oxr_source_input::input, oxr_system::inst, oxr_space::is_reference, xrt_pose::math_pose_invert(), xrt_space_relation::math_relation_reset(), xrt_input::name, oxr_error(), oxr_source_get_pose_input(), oxr_xdev_get_pose_at(), xrt_space_relation::pose, xrt_space_relation::relation_flags, oxr_space::sub_paths, oxr_session::sys, timestamp, oxr_space::type, oxr_source_input::xdev, XRT_SPACE_RELATION_BITMASK_NONE, XRT_SPACE_RELATION_ORIENTATION_TRACKED_BIT, XRT_SPACE_RELATION_ORIENTATION_VALID_BIT, XRT_SPACE_RELATION_POSITION_TRACKED_BIT, and XRT_SPACE_RELATION_POSITION_VALID_BIT.
const struct xrt_pose origin = {{0.0f, 0.0f, 0.0f, 1.0f}, {0.0f, 0.0f, 0.0f}} |
Referenced by Ray::Ray().