Monado OpenXR Runtime
|
The XRT representation of XrSession
, this object does not have all of the functionality of a session, most are partitioned to the session level compositor object.
More...
#include <xrt/xrt_session.h>
Static Public Member Functions | |
static XRT_CHECK_RESULT xrt_result_t | xrt_session_poll_events (struct xrt_session *xs, union xrt_session_event *out_xse) |
Poll a single event from this session, if no event is available then the type of the event will be XRT_SESSION_EVENT_NONE. More... | |
static void | xrt_session_destroy (struct xrt_session **xs_ptr) |
Destroy an xrt_session - helper function. More... | |
Data Fields | |
xrt_result_t(* | poll_events )(struct xrt_session *xs, union xrt_session_event *out_xse) |
Poll a single event from this session, if no event is available then the type of the event will be XRT_SESSION_EVENT_NONE. More... | |
void(* | destroy )(struct xrt_session *xs) |
Destroy the session, must be destroyed after the native compositor. More... | |
The XRT representation of XrSession
, this object does not have all of the functionality of a session, most are partitioned to the session level compositor object.
Often this is xrt_compositor_native, note that interface may also be a system level object depending in implementer.
|
inlinestatic |
Destroy an xrt_session - helper function.
[in,out] | xs_ptr | A pointer to the xrt_session struct pointer. |
Will destroy the system if *xs_ptr
is not NULL. Will then set *xs_ptr
to NULL.
References destroy.
|
inlinestatic |
Poll a single event from this session, if no event is available then the type of the event will be XRT_SESSION_EVENT_NONE.
xs | Pointer to self | |
[out] | out_xse | Event to be returned. |
Helper for calling through the function pointer.
References poll_events.
void(* xrt_session::destroy) (struct xrt_session *xs) |
Destroy the session, must be destroyed after the native compositor.
Code consuming this interface should use xrt_session_destroy.
xs | Pointer to self |
Referenced by xrt_session_destroy().
xrt_result_t(* xrt_session::poll_events) (struct xrt_session *xs, union xrt_session_event *out_xse) |
Poll a single event from this session, if no event is available then the type of the event will be XRT_SESSION_EVENT_NONE.
xs | Pointer to self | |
[out] | out_xse | Event to be returned. |
Referenced by u_session::u_session_create(), and xrt_session_poll_events().