Monado OpenXR Runtime
Loading...
Searching...
No Matches
xrt_tracking_origin_id Struct Reference

A unique identifier for an xrt_tracking_origin instance. More...

#include <xrt/xrt_tracking.h>

Collaboration diagram for xrt_tracking_origin_id:

Data Fields

uint64_t val
 

Related Symbols

(Note that these are not member symbols.)

#define XRT_TRACKING_ORIGIN_ID_INVALID   XRT_C11_COMPOUND(struct xrt_tracking_origin_id){0}
 Value of an xrt_tracking_origin_id that has not been assigned.
 

Detailed Description

A unique identifier for an xrt_tracking_origin instance.

Each tracking origin is assigned a 64-bit ID in the Monado service process, or in the application process for in-process setups. For out-of-process clients the ID is synchronized over the IPC layer, so every client connected to the same service refers to a given tracking origin by the same value.

The ID is intended for hash maps, caches, and similar lookups. Unlike a memory pointer it is never reused after the tracking origin is destroyed.

A value of zero is invalid and means the tracking origin ID has not been assigned, matching the zero-initialized state of the struct.

Friends And Related Symbol Documentation

◆ XRT_TRACKING_ORIGIN_ID_INVALID

#define XRT_TRACKING_ORIGIN_ID_INVALID   XRT_C11_COMPOUND(struct xrt_tracking_origin_id){0}
related

Value of an xrt_tracking_origin_id that has not been assigned.


The documentation for this struct was generated from the following file: